343
Examples
# Clear all IPsec SAs.
<Sysname> reset ipsec sa
# Clear the IPsec SA with a remote IP address of 10.1.1.2.
<Sysname> reset ipsec sa remote 10.1.1.2
# Clear the IPsec SA of the IPsec policy with the name of
policy1
and sequence number of 10.
<Sysname> reset ipsec sa policy policy1 10
# Clear the IPsec SA with a remote IP address of 10.1.1.2, security protocol of AH, and SPI of 10000.
<Sysname> reset ipsec sa parameters 10.1.1.2 ah 10000
reset ipsec session
Syntax
reset ipsec session
[
tunnel-id
integer
]
View
User view
Default level
2: System level
Parameters
integer
: ID of the IPsec tunnel, in the range 1 to 2000000000.
Description
Use the
reset ipsec session
command to clear the sessions of a specified IPsec tunnel or all IPsec tunnels.
Related commands:
display ipsec session
.
Examples
# Clear all IPsec sessions.
<Sysname> reset ipsec session
# Clear the sessions of IPsec tunnel 5.
<Sysname> reset ipsec session tunnel-id 5
reset ipsec statistics
Syntax
reset
ipsec
statistics
View
User view
Default level
2: System level
Parameters
None