Find answers to your technical questions and learn how to use our products
Search suggestions:
Find answers to your technical questions and learn how to use our products
Search suggestions:
Displays the IPSec SA database and related runtime, statistical, and configuration information. If no crypto-list, crypto-list rule, or peer IP address are specified, then all SAs are displayed, sorted first by interface and then by crypto-list rule index.
The IPSec SA statistics counters are reset when any of the following events occur:
The clear crypto sa counters command is used.
avipsMonitorRstCntrs is set in the MIB (equivalent to the above).
The clear crypto sa all command is used.
The crypto-list is activated on an interface for the first time.
A failing-over to a different peer occurs.
A new local-address is learned (due to DHCP, PPPoE, user configuration).
The IP Payload Compression (IPPCP) numbers refer to data as it is presented to the compression/decompression engine, which is before outbound protection and after inbound de-protection. Hence, the numbers do not take into account encapsulation and encryption overheads.
show crypto ipsec sa [list crypto-list-id [rulerule-id] | address] [detail]
Parameter |
Description |
Possible Values |
Default Value |
|---|---|---|---|
crypto-list-id |
The crypto-list whose SA configuration should be displayed |
||
rule-id |
The ip-rule in the crypto-list whose SA configuration should be displayed |
||
address |
Keyword specifying to display SA configuration by peer IP address. |
||
detail |
Keyword specifying to display detailed output |
read-only
general
To display the IPSec SA database and related information:
(In this example, active SAs exist for the rule.)
Gxxx-001(super)# show crypto ipsec sa
Interface: FastEthernet
Crypto list id: 901, Local address: 149.49.77.202
Rule: 10, Crypto map: 1
Local address: 149.49.77.202, Remote address: 135.64.102.109
Local identity: 149.49.77.0/255.255.255.0
Remote identity: 135.64.102.0/255.255.255.0
path mtu 1500, media mtu 1500
Current outbound spi: 0xfdc7d80c
Inbound packets Outbound packets
------------------------- ----------------------------------
Total 6412359 Total 3643507
Total OK 6412359 Total OK 3643507
Decrypt 6412359 Encrypt 3643507
Verify 6412359 Digest 3643507
Decaps 6412359 Encaps 3643507
Total discards 0 Total discards 0
SA Type SPI Transform PFS Secs left KB left Mode
------------ ---------- ------------ --- --------- ------- ----
Inbound ESP 0x1698 esp-des No 3501 4607999 Tunnel
esp-md5-hmac
Outbound ESP 0xfdc7d80c esp-des No 3501 4607999 Tunnel
esp-md5-hmac
--------------------------------------------------------------------
Rule: 20, Crypto map: 1
...
To display the IPSec SA database and related information in detail:
(In this example, IP Payload Compression (IPPCP) is used.)
Gxxx-001(super)# show crypto ipsec sa detail
Inbound pkts errors (global):
Invalid spi 1
Invalid interface 0
Interface: FastEthernet
Crypto list id: 901, Local address: FastEthernet
Rule: 10, Crypto map: 1
Local address: 134.1.157.2
Remote address: 134.1.155.1
Local identity: 8.0.0.0/255.0.0.0
Remote identity: 149.49.43.0/255.255.255.0
path mtu 1500, media mtu 1500
Current outbound spi: 0x0
Inbound packets Outbound packets
------------------------- ----------------------------------
Total 0 Total 1075
Total OK 0 Total OK 1044
Decrypt 0 Encrypt 1044
Verify 0 Digest 1044
Decaps 0 Encaps 1044
Decompompressed 0 Compressed 0
Incompressible 0 Incompressible 0
Comp bypass 0
Comp abort 0
Total discards 0 Total discards 31
Invalid len 0 No sa 31
Replay failed 0 Seq rollover 0
Sa expired 0 Sa expired 0
Auth failed 0
Bad padding 0
Invalid identity 0
Unprotected 0
Other discards 0 Other discards 0
Overall decompression ratio 1.00 Overall compression ratio 1.00
Decompression ratio 1.00 Compression ratio 1.00
Uncomp bytes 0 Uncomp bytes 0
Comp bytes 0 Comp bytes 0
Incomp bytes 0 Incomp bytes 0
======================================================================
Name |
Description |
|---|---|
|
Inbound pkts errors (global)
|
The global inbound packets’ error statistics, as follows:
|
Interface |
The interface for which the following SA information is being displayed. If the crypto-list activated on the interface is also activated on other interfaces, these interfaces are also listed here. Interfaces in the 'down' state are designated as such. |
Crypto list id |
The ID of the crypto-list that contains the SAs being displayed |
Local address |
The local address configured for the crypto list, used for the local tunnel endpoint of all traffic protected by SAs pertaining to the crypto-list. The local address is either an interface name or an IP address, depending on configuration. |
Rule |
The ID of the crypto-list rule that contains the SAs being displayed |
Crypto Map |
The ID of the crypto-map that the rule points to, including its user-defined description |
Local address |
The IP address of the local tunnel endpoint of traffic protected by this SA. If NAT Traversal is used, the UDP encapsulation port number is appended. |
Remote address |
The IP address and, optionally, hostname of the remote peer. A hostname is displayed if the peer was configured by its FQDN. If NAT Traversal is used, the UDP encapsulation port number is appended. |
Local identity |
The local subnet protected by this SA, as it was configured in the crypto-list rule. The subnet is expressed as <address>/<wildcard>. |
Remote identity |
The remote subnet protected by this SA, as it was configured in the crypto-list rule. The subnet is expressed as <address>/<wildcard>. |
Path mtu |
The path MTU kept for this SA, as received from the network by path MTU discovery error messages. This does not include the IPSec encapsulation overhead. |
Media mtu |
The media MTU kept for this SA, as learned from the underlying interface. This does not include the IPSec encapsulation overhead. |
Current outbound spi |
The value of the currently active outbound SPI, expressed in hexadecimal encoding. If none exists, 0x0 is displayed. |
Inbound packets |
The inbound packets statistics for the crypto-list rule:
|
Inbound packets |
|
Outbound packets |
The outbound packets statistics for the crypto-list rule:
|
Outbound packets |
|
|
SA Type
|
The type of the SA: ESP Inbound or ESP Outbound |
SPI |
The SPI of the SA in hexadecimal encoding |
Transform |
Lists all the transforms being used by the SA. Each transform is listed in a separate row. |
PFS |
Displays information about Perfect Forward Secrecy (PFS) usage, when the SA is negotiated by IKE Phase-2. Possible values are:
|
Secs left |
The number of seconds left for this SA’s expiration |
KB left |
The number of kilobytes left for this SA’s expiration |
Mode |
The encapsulation mode: tunnel or transport |
This parameter appears when the detail keyword is specified.
This parameter appears when IP Payload Compression (IPPCP) is used.
The SA table is displayed only when active SAs exist for the rule.