Show crypto IPsec sa: How to Check Cisco IPsec Security Associations
Learn how to use show crypto ipsec sa to verify Cisco VPN traffic, inspect counters, and troubleshoot common tunnel issues.


The Cisco command show crypto ipsec sa displays IPsec security associations (SAs) on a router or security appliance. Use it to check whether a VPN has established IPsec protection, see which peers and traffic selectors are involved, and confirm whether packets are being encrypted and decrypted. The counters are especially useful: increasing encrypt and decrypt values indicate that protected traffic is flowing, while unchanged counters can point to a traffic, routing, or policy issue.
Editor's pick: NordVPN — fast, secure VPN — Strong encryption, a no-logs policy and apps for every device. 30-day money-back guarantee. Get NordVPN →
What the command shows
An IPsec SA contains the details devices need to protect traffic between VPN peers. The command reports information such as the peer address, local and remote traffic selectors, transform set or proposal, Security Parameter Index (SPI), and packet counters.
A typical invocation is:
show crypto ipsec sa
On some Cisco platforms, you can narrow the output by peer or interface:
show crypto ipsec sa peer 203.0.113.10
show crypto ipsec sa interface GigabitEthernet0/0
Available filters and output fields vary by platform and software version. If a form is rejected, check the device’s command help with show crypto ipsec sa?. Clash Meta for iOS: What It Is and How to Use It
The output may contain inbound and outbound SA details. These represent the two directions of protected traffic. Each direction has its own SPI and counters. Do not expect the inbound and outbound SPI values to match.
How to read the important fields
Exact formatting differs across Cisco IOS, IOS XE, and other platforms, but the same key details are commonly present.
| Output field | What it means | What to check |
|---|---|---|
peer |
The remote VPN endpoint | Confirm it is the expected peer address |
local ident / remote ident |
Traffic selectors, such as protected subnets | Confirm they match the intended networks |
current_peer |
Peer associated with the SA | Check for an unexpected or missing peer |
inbound esp sas / outbound esp sas |
Inbound and outbound ESP SAs | Look for installed SAs and their parameters |
spi |
Identifier for a particular SA | Expect distinct values for inbound and outbound SAs |
#pkts encaps |
Packets protected and sent into the tunnel | Should rise when matching outbound traffic is generated |
#pkts decaps |
Packets received and successfully processed from the tunnel | Should rise when the remote side sends matching traffic |
#pkts encrypt / #pkts decrypt |
Encryption and decryption activity | Compare changes while testing traffic |
#pkts errors or drop counters |
Packets that failed processing | Investigate if these increase during testing |
The selector fields are important. If the local and remote identities do not describe the networks you expect, the VPN may be negotiating protection for different traffic than your test is using.
How to verify that traffic is passing
Run the command before and after generating traffic that should cross the VPN. Use a known source and destination that match the configured VPN selectors. What Is My IP Address? Check It With NordVPN
- Check the peer and traffic selectors.
- Record the current encrypt, encapsulate, decrypt, and decapsulate counters.
- Send a small test, such as a ping, from a host on one protected network to a host on the other.
- Run
show crypto ipsec saagain. - Compare the counters and check for errors.
If outbound counters increase but inbound counters do not, the local device is sending encrypted traffic but is not seeing corresponding protected traffic return. The problem could be on the remote device, along the network path, or with the return route or policy.
If inbound counters increase but outbound counters remain still, remote traffic is reaching the local VPN device, but local hosts may not be sending matching traffic back. Check the destination host, local routing, and access rules.
A ping alone is not definitive. The target might block ICMP, or the test packet might not match the VPN selectors. Use a suitable test and verify its source address and destination.
Common results and what they suggest
| Result | Likely interpretation | Next check |
|---|---|---|
| No relevant SA appears | IPsec may not have negotiated, or the filter may be too narrow | Check IKE status and configuration |
| SA appears, counters stay at zero | No matching traffic has been sent or received | Check selectors, test traffic, and routing |
| Encrypt counters rise, decrypt counters do not | Outbound traffic is leaving without a visible protected reply | Check the remote peer, return path, and remote selectors |
| Decrypt counters rise, encrypt counters do not | Remote traffic arrives, but local return traffic is absent | Check local hosts, routes, and security policies |
| Error or replay counters rise | Packets may be malformed, duplicated, out of sequence, or otherwise rejected | Review logs, peer compatibility, and packet-path issues |
These are starting points, not proof of a single cause. Counter behavior should be interpreted alongside the device configuration and the remote peer’s status. Microsoft Edge Secure Network VPN: How It Works and How to Turn It On
Troubleshooting workflow
Start by checking whether the IKE relationship is established. On many Cisco platforms, show crypto ipsec sa focuses on data-plane IPsec SAs. It does not provide the full picture of IKE negotiation. Depending on the platform and software version, useful companion commands include:
show crypto ikev2 sa
show crypto isakmp sa
show crypto session
Use the IKE command that matches the configured version. If IKE is not established, inspect peer reachability, credentials, proposals, and negotiation logs before focusing on IPsec counters.
If IKE is up but the expected IPsec SA is absent or idle, check:
- Whether interesting traffic is being generated from the correct source network.
- Whether local and remote selectors match on both peers.
- Whether routes send the test traffic toward the VPN device.
- Whether access control lists, NAT rules, or firewall policies change or block the traffic.
- Whether the peers agree on encryption, integrity, and lifetime settings.
On some configurations, NAT exemption or equivalent policy is necessary so that VPN traffic is not translated before it matches the IPsec policy. Also compare the local and remote device outputs: one peer’s outbound traffic should correspond to the other peer’s inbound traffic. Urban VPN Chrome: How to Install, Use, and Evaluate the Extension
Practical tips and limitations
Counters are cumulative for the lifetime of an SA and may reset when the SA is renegotiated, cleared, or the device restarts. Compare values over a short, controlled test rather than relying on a single snapshot.
Be careful when clearing SAs in production. Removing them can interrupt traffic while the peers negotiate replacements. Prefer observation and counter comparison first. Clear an SA only when you understand the impact and have a reason to force renegotiation.
Finally, the command confirms IPsec state and activity, not end-to-end application health. A tunnel can have active SAs while users still experience problems because of DNS, routing, host firewalls, or application failures.
Recommendation
Use show crypto ipsec sa before and after sending traffic that should cross the VPN. Confirm the peer and selectors, then compare encrypt and decrypt counters. If they do not behave as expected, pair the results with IKE status, routes, and policy checks to isolate the fault without prematurely clearing a live SA. Urban VPN Review: Features, Platforms, and What to Consider

