
346
Task Command
Display the IKEv2 policy configuration.
display ikev2 policy
[
policy-name
|
default
]
Display the IKEv2 profile configuration.
display ikev2 profile
[
profile-name
]
Display the IKEv2 SA information.
display ikev2 sa
[ {
count
|
local
|
remote
}
{
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
] ] [
verbose
[
tunnel
tunnel-id
]
]
Delete IKEv2 SAs and the child SAs negotiated
through the IKEv2 SAs.
reset ikev2 sa
[ [ {
local
|
remote
} {
ipv4-address
|
ipv6
ipv6-address
} [
vpn-instance
vpn-instance-name
] ] |
tunnel
tunnel-id
] [
fast
]
IKEv2 configuration examples
IKEv2 with pre-shared key authentication configuration
example
Network requirements
As shown in
, configure an IKE-based IPsec tunnel between Switch A and Switch B to
secure the communication between them.
•
Configure Switch A and Switch B to use the default IKEv2 proposal and the default IKEv2 policy
in IKEv2 negotiation to set up IPsec SAs.
•
Configure the two switches to use the pre-shared key authentication method in IKEv2
negotiation.
Figure 97 Network diagram
Configuration procedures
1.
Configure Switch A:
# Assign an IP address to VLAN-interface 1.
<SwitchA> system-view
[SwitchA] interface vlan-interface 1
[SwitchA-vlan-interface1] ip address 1.1.1.1 255.255.255.0
[SwitchA-vlan-interface1] quit
# Configure IPv4 advanced ACL 3101 to identify the traffic between Switch A and Switch B.
[SwitchA] acl advanced 3101
[SwitchA-acl-ipv4-adv-3101] rule 0 permit ip source 1.1.1.1 0 destination 2.2.2.2 0
[SwitchA-acl-ipv4-adv-3101] quit
# Create an IPsec transform set named
tran1
.
[SwitchA] ipsec transform-set tran1
# Set the packet encapsulation mode to
tunnel
.
[SwitchA-ipsec-transform-set-tran1] encapsulation-mode tunnel
# Use the ESP protocol for the IPsec transform set.
[SwitchA-ipsec-transform-set-tran1] protocol esp
Содержание 10500 series
Страница 326: ...312 No duration limit for this SA ...