clear crypto ipsec sa
To delete specific security associations (SAs), or all SAs in the IP Security (IPSec) security associations database (SADB), use the clear crypto ipsec sa command.
clear crypto ipsec sa {sa-id | all | counters | {sa-id | all} | interface tunnel-ipsec}
Syntax Description
sa-id |
Identifier for the SA. IPSec supports from 1 to 64,500 sessions. |
all |
Deletes all IPSec SAs in the IPSec SADB. |
counters |
Clears the counters in the IPSec SADB. |
interface |
Clears the interfaces in the IPSec SADB. |
tunnel-ipsec |
The range of tunnel-ipsec is <0-4294967295>. |
Command Default
No default behavior or values
Command Modes
EXEC modeCommand History
Release |
Modification |
---|---|
Release 2.0 |
This command was introduced. |
Release 3.4.0 |
The range for the sa-id argument increased to 16500 sessions. |
Release 3.6.0 |
The upper limit for the sa-id argument range was increased to 64,500 sessions. |
Usage Guidelines
SAs are established to secure data flows in IPSec. Use the clear crypto ipsec sa command to delete active IPSec sessions or force IPSec to reestablish new SAs. Usually, the establishment of SAs is negotiated between peers through Internet Key Exchange (IKE) on behalf of IPSec.
Task ID
Task ID |
Operations |
---|---|
crypto |
execute |
Examples
The following example shows how to remove the SA with ID 100 from the SADB:
RP/0/RP0/CPU0:router# clear crypto ipsec sa 100