本帖最后由 宅男女神 于 2015-10-7 21:02 编辑
1、IPsec over Gre VPN 主模式
H3C IPsec over Gre VPN 主模式 野蛮模式配置实例
R1配置: # ike keychain test pre-shared-key address 192.168.1.2255.255.255.252 key simple test# # ike profile test keychain test match remote identity address 192.168.1.2255.255.255.252 # # ipsec transform-set test espencryption-algorithm des-cbc espauthentication-algorithm sha1 # interface Tunnel0 mode gre ipaddress 192.168.1.1 255.255.255.252 source 100.0.0.1 destination 200.0.0.1 ipsec apply policy test # [R1]dis acl all Advanced ACL 3000, named -none-, 1 rule, ACL's step is 5 rule0 permit ip source 1.1.1.1 0 destination 2.2.2.2 0 # iproute-static 0.0.0.0 0 100.0.0.2 iproute-static 2.2.2.2 32 Tunnel0 # RT2配置和RT1类似,所以略。 小提示:当做IPsec over Gre VPN的时候,要知道该VPN的封装模式,先用IPsec进行加密,再将数据丢入Tunnel口。最后走的是Tunnel口进行封装公网IP头。所以首先得用Gre将公网打通。Gre本地的源和目的为本端和对端设备的公网地址。再做一个IPsec,此时的IPsec是通过Gre来传递信息的,所以IPsec对端的安全网关是对端设备的Tunnel口地址。
|