【HUAWEI&H3C】对比华为和华三的IPSec配置

本文对比了华为和华三在IPSec配置上的差异,包括固定IP主模式、不固定IP主模式、NAT穿越建立IPSec隧道和GRE Over IPSec隧道的配置步骤。详细列举了华为和华三设备的配置命令,帮助读者理解两者在实现相同功能时的不同之处。
摘要由CSDN通过智能技术生成

有关IPSec VPN的原理,这里就不展开了,我们直接上图上配置

一、固定IP,主模式VPN配置

华为:

#
ike proposal 1
 encryption-algorithm aes-cbc-128
 authentication-algorithm aes-xcbc-mac-96
#
ike peer 1 v2
 pre-shared-key cipher 12345@huawei
 ike-proposal 1
 local-address 12.12.12.1
 remote-address 23.23.23.3
#
ipsec proposal 1
 esp authentication-algorithm sha1
 esp encryption-algorithm aes-128         
#
acl number 3000  
 rule 10 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.3.0 0.0.0.255 
#
ipsec policy 1 1 isakmp
 security acl 3000
 ike-peer 1
 proposal 1
#
ip route-static 0.0.0.0 0.0.0.0 12.12.12.2
#

--------------------------------------------------------------------------------------------------------------------------

H3C:

#
ike proposal 1
 encryption-algorithm aes-cbc-128
#
ike keychain 1
 match local address 12.12.12.1
 pre-shared-key address 23.23.23.3 255.255.255.0 key cipher $c$3$4UeEAf40bV9Vz/Ixl0Wkx2s0j1ZDIH4EY6vQAg==
#
ike profile 1
 keychain 1
 local-identity address 12.12.12.1
 match remote identity address 23.23.23.3 255.255.255.0
 proposal 1
#
ipsec transform-set 1
 esp encryption-algorithm aes-cbc-128
 esp authentication-algorithm aes-xcbc-mac
#
acl advanced 3000
 rule 10 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.3.0 0.0.0.255
#
ipsec policy 1 1 isakmp
 transform-set 1
 security acl 3000
 remote-address 23.23.23.3
 ike-profile 1

================================================================================

二、不固定IP,主模式

----------------------------------------------------------

华为:

AR1:

ipsec proposal huawei
#
ike proposal 1
#
ike peer branch v1
 pre-shared-key simple huawei
 ike-proposal 1
 local-address 12.12.12.1                 
#
ipsec policy-template branch 1
 ike-peer branch
 proposal huawei
#
ipsec policy-template branch 1
 ike-peer branch
 proposal huawei
#
ipsec policy branch_policy 1 isakmp template branch
#
interface GigabitEthernet0/0/1
 ip address 12.12.12.1 255.255.255.0      
 ipsec policy bran

  • 0
    点赞
  • 39
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值