# ========== 1、IKE提议(阶段1提议,和V5基本一致)==========
ike proposal 1
encryption-algorithm 3des-cbc
authentication-algorithm md5
sa duration 3600
# DH组默认group1,和V5保持一致
quit
# ========== 2、全局开启NAT穿越(替代V5 ike peer下nat traversal)==========
nat traversal
# ========== 3、IKE密钥链(keychain,存放各分支预共享密钥+对端IP)==========
ike keychain zongbu-key
pre-shared-key address 5.?.?.? 255.255.255.255 key simple #123????bc*
pre-shared-key address 111.?.?.18 255.255.255.255 key simple #1?????6al
pre-shared-key address 116.?.?.20.3 255.255.255.255 key simple #1???????
pre-shared-key address 120.?.?.221.88 255.255.255.255 key simple #12????6abc*
quit
# ========== 4、IKE profile(绑定keychain + ike proposal,替代V5 ike peer)==========
ike profile zongbu-profile
keychain zongbu-key
proposal 1
quit
# ========== 5、IPSec transform-set(V5的ipsec proposal改名叫transform-set)==========
ipsec transform-set zongbu
esp encryption-algorithm 3des
# 注意:原V5只写了esp加密,没有esp认证,和你原配置保持一致;
# 如果对接需要,建议加上 esp authentication-algorithm md5
quit
# ========== 6、IPSec Policy(isakmp,IKEv1协商,替换V5 ipsec policy)==========
ipsec policy vpn 61 isakmp
security acl 3065
transform-set zongbu
ike-profile zongbu-profile
remote-address 116.?.?.20.3
quit
ipsec policy vpn 64 isakmp
security acl 3064
transform-set zongbu
ike-profile zongbu-profile
remote-address 120.?.?.221.88
quit
ipsec policy vpn 68 isakmp
security acl 3068
transform-set zongbu
ike-profile zongbu-profile
remote-address 111.?.?.18
quit
ipsec policy vpn 130 isakmp
security acl 3130
transform-set zongbu
ike-profile zongbu-profile
remote-address 5.?.?.?
quit
# ========== 7、接口下应用(原有V5一样,接口下ipsec apply policy vpn)==========
# interface GigabitEthernet 0/0
# ipsec apply policy vpn
ike peer 是一阶段对等体;
V7:IKEv1 推荐 ike-profile + ike keychain,ipsec policy 里面引用 ike-profile,不再引用 ike-peer;
算法提醒:3DES、MD5 属于弱加密,等保 / 合规场景不建议使用,下面是和你 V5 配置参数一一对应的翻译(IKEv1 主模式)。
# 1、IKE提议(IKEv1 阶段1提议,和V5 ike proposal 1对应)
ike proposal 1
encryption-algorithm 3des-cbc
authentication-algorithm md5
sa duration 3600
dh group1
#
# 2、ike keychain 存放预共享密钥(V5的pre-shared-key迁移到这里)
ike keychain key-zongbu
pre-shared-key address 5.xxx.xxx.xxx 255.255.255.255 key simple #123xxxbc*
pre-shared-key address 111.xxx.xxx.18 255.255.255.255 key simple #123xxx6abc*
pre-shared-key address 116.xxx.xxx.20.3 255.255.255.255 key simple #123xxx
pre-shared-key address 120.xxx.xxx.221.88 255.255.255.255 key simple #123xxx6abc*
#
# 3、ike-profile(替代V5 ike peer,绑定proposal、keychain、NAT穿越)
ike profile zongbu-daban
keychain key-zongbu
proposal 1
remote-identity address 5.xxx.xxx.xxx
nat traversal
#
ike profile zongbu-jinshan
keychain key-zongbu
proposal 1
remote-identity address 111.xxx.xxx.18
nat traversal
#
ike profile zongbu-jlgl
keychain key-zongbu
proposal 1
remote-identity address 116.xxx.xxx.20.3
nat traversal
#
ike profile zongbu-xiwuqi
keychain key-zongbu
proposal 1
remote-identity address 120.xxx.xxx.221.88
nat traversal
#
# 4、ipsec transform-set(替代V5 ipsec proposal)
ipsec transform-set zongbu
esp encryption-algorithm 3des
esp authentication-algorithm md5
#
# 5、ipsec policy(isakmp模式,里面引用 ike-profile,不再引用ike-peer)
ipsec policy vpn 61 isakmp
security acl 3065
ike-profile zongbu-jlgl
transform-set zongbu
#
ipsec policy vpn 64 isakmp
security acl 3064
ike-profile zongbu-xiwuqi
transform-set zongbu
#
ipsec policy vpn 68 isakmp
security acl 3068
ike-profile zongbu-jinshan
transform-set zongbu
#
ipsec policy vpn 130 isakmp
security acl 3130
ike-profile zongbu-daban
transform-set zongbu
表格
| V5 命令 | V7 替换 |
|---|---|
| ike peer xxx | ike profile xxx + ike keychain |
| pre-shared-key | ike keychain 下 pre-shared-key address |
| remote-address | ike profile 下 remote-identity address |
| nat traversal | ike profile 下 nat traversal(一样) |
| ipsec proposal | ipsec transform-set |
| ipsec policy ... ike-peer | ipsec policy ... ike-profile |
nat traversal;ipsec policy vpn(和 V5 一样);simple 模式注意引号问题,加密后会自动转密文。
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明