IKEv2 proposal是IKE SA中协商转换集(Transforms Collection)在IKE_SA_INIT交换中的一部分。在协商过程中转换类型如下:
R1(config)#crypto ikev2 proposal ikev2-proposal
R1(config-ikev2-proposal)#?
IKEv2 Proposal commands:
encryption Set encryption algorithm(s) for proposal
exit Exit from IKEv2 proposal configuration mode
group Set the Diffie-Hellman group(s)
integrity Set integrity hash algorithm(s) for proposal
no Negate a command or set its defaults
IKEv2 policy包含用于在SA_INIT交换中协商 加密,完整性,PRF算法和DH组。
R1(config)#crypto ikev2 policy ikev2-policy
R1(config-ikev2-policy)#?
IKEv2 Policy commands:
exit Exit from IKEv2 policy configuration mode
match Match values of local fields
no Negate a command or set its defaults
proposal Specify Proposal
IKEv2 Keyring是对称和非对称预共享密钥的存储库。
R1(config)#crypto ikev2 keyring ikev2-keyring
R1(config-ikev2-keyring)#?
IKEv2 Keyring commands:
exit Exit from crypto ikev2 keyring sub mode
no Negate a command or set its defaults
peer Configure a Peer and associated keys
IKEv2 profile是IKE SA的不可协商(NonNegotiable)参数的存储库,如本地或远程身份和身份验证方法和可用相匹配的配置文件,经过身份验证的对等体提供的服务。
R1(config)#crypto ikev2 profile ikev2-profile
R1(config-ikev2-profile)#?
IKEv2 profile commands:
aaa Specify AAA related configs
authentication Set authentication method
config-exchange config-exchange options
description Specify a description of this profile
dpd Enable IKE liveness check for peers
exit Exit from crypto ikev2 profile sub mode
identity Specify IKE identity to use
initial-contact initial-contact processing
ivrf I-VRF of the profile
keyring Specify keyring to use
lifetime Set lifetime for ISAKMP security association
match Match values of peer
nat NAT-transparency
no Negate a command or set its defaults
pki Specify certificate authorities to trust
redirect IKEv2 Redirect Mechanism for load-balancing
virtual-template Specify the virtual-template for dynamic interface
crypto ipsec transform-set是定义变换集(To define a transform set),定义适合的安全协议和加密算法。
R1(config)#crypto ipsec transform-set ikev2-transform-set esp-aes esp-sha-hmac
Crypto transform configuration commands:
default Set a command to its defaults
exit Exit from crypto transform configuration mode
mode encapsulation mode (transport/tunnel)
no Negate a command or set its defaults
crypto 集合,集合内容如下。
R2(config)#crypto map ikev2-map 10 ipsec-isakmp
Crypto Map configuration commands:
default Set a command to its defaults
description Description of the crypto map statement policy
dialer Dialer related commands
exit Exit from crypto map configuration mode
match Match values.
no Negate a command or set its defaults
qos Quality of Service related commands
reverse-route Reverse Route Injection.
set Set values for encryption/decryption
因为配置命令比较麻烦,我经常使用PPKP(proposal->policy->keyring->profile)来简化配置思路。
crypto ikev2 proposal ikev2-proposal
encryption1 aes-cbc-256
integrity2 sha512
group3 16
!
crypto ikev2 policy ikev2-policy
match fvrf4 any
proposal5 ikev2-proposal
!
crypto ikev2 keyring ikev2-keyring
peer6 ccie43413
address7 12.1.1.1
pre-shared-key8 local ccie43413
pre-shared-key9 remote ccie43413
!
!
crypto ikev2 profile ikev2-profile
match identity remote address 12.1.1.1 255.255.255.255 10
authentication remote pre-share11
authentication local pre-share 12
keyring local ikev2-keyring13
!
crypto ipsec transform-set ikev2-transform-set esp-aes esp-sha-hmac
mode tunnel
!
crypto map ikev2-map 10 ipsec-isakmp
set peer 12.1.1.1
set transform-set ikev2-transform-set
set ikev2-profile ikev2-profile
match address vpn
!
ip access-list extended vpn
permit ip host 10.1.1.1 host 20.1.1.1
!
1.Configuring Internet Key Exchange Version 2 (IKEv2)
2.IKEv1/IKEv2 Between Cisco IOS and strongSwan Configuration Example
3.IPSec Network Security Commands