山石网科GRE over IPsec配置

山石网科GRE over IPsec配置

拓扑图

2438867564

一、配置左侧设备

  1. 配置设备接口IP及安全域
    1187927164
    4155238065

  2. 配置设备安全策略(实验为了方便全放行)
    146183073

  3. 配置p1提议
    547666883

  4. 配置p2提议
    1978154884

  5. 配置VPN对端列表
    3856001910

  6. 配置IKE VPN列表
    1635936123

  7. 配置GRE 和 tunnel1 接口

    tunnel gre shanghai
    source 12.0.0.1
    destination 12.0.0.2
    interface ethernet0/3
    next-tunnel ipsec 北京
    exit

    interface tunnel1
    zone “trust”
    ip address 10.0.0.1 255.255.255.0
    manage ping
    tunnel gre “shanghai” gw 10.0.0.2
    exit

  8. 配置OSPF
    1534330148

二、配置右侧设备

  1. 配置设备接口IP及安全域
    3143640458
    ![2022-08-26T15:03:22.png][11]

  2. 配置设备安全策略(实验为了方便全放行)
    2970468358

  3. 配置p1提议
    547666883

  4. 配置p2提议
    1978154884

  5. 配置VPN对端列表
    771469191

  6. 配置IKE VPN列表
    424698694

  7. 配置GRE 和 tunnel1 接口

    tunnel gre “beijing”
    source 12.0.0.2
    destination 12.0.0.1
    interface ethernet0/3
    next-tunnel ipsec 上海
    exit

    interface tunnel1
    zone “trust”
    ip address 10.0.0.2 255.255.255.0
    manage ping
    tunnel gre “beijing” gw 10.0.0.1
    exit

  8. 配置OSPF
    1698346882

三、验证

  1. show ipsec sa 或 网页查看
    1096277
    3656303438
  2. show isakmp sa 或 网页查看
    3524302367
    2509488913
  3. show ip route
    724742663 ![2022-08-26T15:11:02.png][22]
  4. 业务验证

1259609429 ![2022-08-26T15:12:23.png][23]

LICENSED UNDER CC BY-NC-SA 4.0