设备型号:F1050
IKEv2 配置加密算法,认证算法,生存时间的命令分别是什么?
(0)
最佳答案
[H3C]ike proposal 1
[H3C-ike-proposal-1]quit
[H3C]ike keychain 1
[H3C-ike-keychain-1]pre-shared-key address 0.0.0.0 0.0.0.0 key simple 123456
[H3C-ike-keychain-1]quit
[H3C]ike profile 1
[H3C-ike-profile-1]keychain 1
[H3C-ike-profile-1] exchange-mode aggressive
[H3C-ike-profile-1] local-identity fqdn center
[H3C-ike-profile-1]match remote identity address 0.0.0.0 0.0.0.0
[H3C-ike-profile-1]match remote identity fqdn branch
[H3C-ike-profile-1]proposal 1
[H3C-ike-profile-1]quit
(0)
你这个是IKEv1的吧?
<DeviceA> system-view [DeviceA] acl advanced 3101 [DeviceA-acl-ipv4-adv-3101] rule permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255 [DeviceA-acl-ipv4-adv-3101] quit # 创建IPsec安全提议tran1。 [DeviceA] ipsec transform-set tran1 # 配置安全协议对IP报文的封装形式为隧道模式。 [DeviceA-ipsec-transform-set-tran1] encapsulation-mode tunnel # 配置采用的安全协议为ESP。 [DeviceA-ipsec-transform-set-tran1] protocol esp # 配置ESP协议采用的加密算法为DES,认证算法为HMAC-SHA1。 [DeviceA-ipsec-transform-set-tran1] esp encryption-algorithm des-cbc [DeviceA-ipsec-transform-set-tran1] esp authentication-algorithm sha1 [DeviceA-ipsec-transform-set-tran1] quit # 创建IKEv2 keychain,名称为keychain1。 [DeviceA] ikev2 keychain keychain1 # 创建IKEv2对端,名称为peer1。 [DeviceA-ikev2-keychain-keychain1] peer peer1 # 指定对端peer1的主机地址为2.2.2.2/16。 [DeviceA-ikev2-keychain-keychain1-peer-peer1] address 2.2.2.2 16 # 指定对端peer1的身份信息。 [DeviceA-ikev2-keychain-keychain1-peer-peer1] identity address 2.2.2.2 # 配置对端peer1使用的预共享密钥为明文abcde。 [DeviceA-ikev2-keychain-keychain1-peer-peer1] pre-shared-key plaintext abcde [DeviceA-ikev2-keychain-keychain1-peer-peer1] quit [DeviceA-ikev2-keychain-keychain1] quit # 创建IKEv2 profile,名称为profile1。 [DeviceA] ikev2 profile profile1 # 指定本端的身份认证方式为预共享密钥。 [DeviceA-ikev2-profile-profile1] authentication-method local pre-share # 指定对端的身份认证方式为预共享密钥。 [DeviceA-ikev2-profile-profile1] authentication-method remote pre-share # 指定引用的IKEv2 keychain为keychain1。 [DeviceA-ikev2-profile-profile1] keychain keychain1 # 配置匹配对端身份的规则为IP地址2.2.2.2/16。 [DeviceA-ikev2-profile-profile1] match remote identity address 2.2.2.2 255.255.0.0 [DeviceA-ikev2-profile-profile1] quit # 创建一条IKEv2协商方式的IPsec安全策略,名称为map1,顺序号为10。 [DeviceA] ipsec policy map1 10 isakmp # 配置IPsec隧道的对端IP地址为2.2.2.2。 [DeviceA-ipsec-policy-isakmp-map1-10] remote-address 2.2.2.2 # 指定引用ACL 3101。 [DeviceA-ipsec-policy-isakmp-map1-10] security acl 3101 # 指定引用的安全提议为tran1。 [DeviceA-ipsec-policy-isakmp-map1-10] transform-set tran1 # 指定引用的IKEv2 profile为profile1。 [DeviceA-ipsec-policy-isakmp-map1-10] ikev2-profile profile1 [DeviceA-ipsec-policy-isakmp-map1-10] quit # 在接口GigabitEthernet1/0/1上应用IPsec安全策略map1。 [DeviceA] interface gigabitethernet 1/0/1 [DeviceA-GigabitEthernet1/0/1] ipsec apply policy map1 [DeviceA-GigabitEthernet1/0/1] quit # 配置到Host B所在子网的静态路由。1.1.1.2为本例中的直连下一跳地址,实际使用中请以具体组网情况为准。 [DeviceA] ip route-static 10.1.2.0 255.255.255.0 1.1.1.2
V2的proposal跟V1一样,sa生存时间在profile里面配置
(0)
官方文档里好像没有引用ikev2 pocily 的地方,是不需要引用吗? 这样的话ikev2 proposal会生效吗?
官方文档里好像没有引用ikev2 pocily 的地方,是不需要引用吗? 这样的话ikev2 proposal会生效吗?
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
<DeviceA> system-view [DeviceA] acl advanced 3101 [DeviceA-acl-ipv4-adv-3101] rule permit ip source 10.1.1.0 0.0.0.255 destination 10.1.2.0 0.0.0.255 [DeviceA-acl-ipv4-adv-3101] quit # 创建IPsec安全提议tran1。 [DeviceA] ipsec transform-set tran1 # 配置安全协议对IP报文的封装形式为隧道模式。 [DeviceA-ipsec-transform-set-tran1] encapsulation-mode tunnel # 配置采用的安全协议为ESP。 [DeviceA-ipsec-transform-set-tran1] protocol esp # 配置ESP协议采用的加密算法为DES,认证算法为HMAC-SHA1。 [DeviceA-ipsec-transform-set-tran1] esp encryption-algorithm des-cbc [DeviceA-ipsec-transform-set-tran1] esp authentication-algorithm sha1 [DeviceA-ipsec-transform-set-tran1] quit # 创建IKEv2 keychain,名称为keychain1。 [DeviceA] ikev2 keychain keychain1 # 创建IKEv2对端,名称为peer1。 [DeviceA-ikev2-keychain-keychain1] peer peer1 # 指定对端peer1的主机地址为2.2.2.2/16。 [DeviceA-ikev2-keychain-keychain1-peer-peer1] address 2.2.2.2 16 # 指定对端peer1的身份信息。 [DeviceA-ikev2-keychain-keychain1-peer-peer1] identity address 2.2.2.2 # 配置对端peer1使用的预共享密钥为明文abcde。 [DeviceA-ikev2-keychain-keychain1-peer-peer1] pre-shared-key plaintext abcde [DeviceA-ikev2-keychain-keychain1-peer-peer1] quit [DeviceA-ikev2-keychain-keychain1] quit # 创建IKEv2 profile,名称为profile1。 [DeviceA] ikev2 profile profile1 # 指定本端的身份认证方式为预共享密钥。 [DeviceA-ikev2-profile-profile1] authentication-method local pre-share # 指定对端的身份认证方式为预共享密钥。 [DeviceA-ikev2-profile-profile1] authentication-method remote pre-share # 指定引用的IKEv2 keychain为keychain1。 [DeviceA-ikev2-profile-profile1] keychain keychain1 # 配置匹配对端身份的规则为IP地址2.2.2.2/16。 [DeviceA-ikev2-profile-profile1] match remote identity address 2.2.2.2 255.255.0.0 [DeviceA-ikev2-profile-profile1] quit # 创建一条IKEv2协商方式的IPsec安全策略,名称为map1,顺序号为10。 [DeviceA] ipsec policy map1 10 isakmp # 配置IPsec隧道的对端IP地址为2.2.2.2。 [DeviceA-ipsec-policy-isakmp-map1-10] remote-address 2.2.2.2 # 指定引用ACL 3101。 [DeviceA-ipsec-policy-isakmp-map1-10] security acl 3101 # 指定引用的安全提议为tran1。 [DeviceA-ipsec-policy-isakmp-map1-10] transform-set tran1 # 指定引用的IKEv2 profile为profile1。 [DeviceA-ipsec-policy-isakmp-map1-10] ikev2-profile profile1 [DeviceA-ipsec-policy-isakmp-map1-10] quit # 在接口GigabitEthernet1/0/1上应用IPsec安全策略map1。 [DeviceA] interface gigabitethernet 1/0/1 [DeviceA-GigabitEthernet1/0/1] ipsec apply policy map1 [DeviceA-GigabitEthernet1/0/1] quit # 配置到Host B所在子网的静态路由。1.1.1.2为本例中的直连下一跳地址,实际使用中请以具体组网情况为准。 [DeviceA] ip route-static 10.1.2.0 255.255.255.0 1.1.1.2