How to Use show crypto IPsec sa to Check IPsec VPN Status

Learn how to run show crypto ipsec sa, interpret its output, and troubleshoot common Cisco IPsec VPN problems.


The Cisco command show crypto ipsec sa displays information about IPsec security associations (SAs), including the remote peer, negotiated algorithms, traffic selectors, and packet counters. Use it to check whether an IPsec VPN has established SAs and whether matching traffic is being encrypted and decrypted. The command is a valuable diagnostic tool, but its output should be read alongside IKE status, routing, and access-control configuration.
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 →
Compare command options for checking IPsec VPN status
| Command | Best used for | Information shown | Typical scope | Main limitation |
|---|---|---|---|---|
| `show crypto ipsec sa` | Checking IPsec data-plane SAs | Encrypt and decrypt counters, addresses, SPI, lifetimes | IPsec SAs | Does not alone confirm end-to-end application access |
| `show crypto isakmp sa` | Checking IKEv1 negotiation | IKE SA state and peers | IKEv1 control plane | Does not show IPsec traffic counters |
| `show crypto ikev2 sa` | Checking IKEv2 negotiation | IKEv2 SA state and peers | IKEv2 control plane | Does not show IPsec traffic counters |
| `show crypto session` | Viewing session summaries | Peer, status, and session details | Crypto sessions | Less detailed IPsec SA counters |
| `show access-lists` | Reviewing traffic selectors and permit rules | ACL entries and match counters | Configured access lists | Does not prove that an SA is active |
| `show running-config` | Reviewing VPN configuration | Crypto maps, profiles, and related settings | Device configuration | Shows configuration, not live tunnel health |
Compiled November 2026; check the provider's site for current details.
| VPN | Obfuscation | From / month | Plan | Free plan | Refund | Alipay | UnionPay | Crypto | Website opens in China | Trustpilot | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Turn on manually Shadow | $2.49/mo | 27 months: $59.99 | Yes | 7 days | ✓ | ✓ | ✓ | ✓ | Official site blocked; our special link opens (4.4 s) | 4.2/5 (195 reviews) | |
| Turn on manually Obfuscated Servers / NordWhisper | $3.49/mo | 27 months: $94.23 | No | 30 days | ? | ✗ | ✓ | ✓ | ✗ Blocked | 4.2/5 (51,628 reviews) | |
| ✓ On by default all servers | $3.00/mo | 28 months: $84 | No | 30 days | ✗ | ✗ | ✓ | ✗ | ✗ Blocked | 4.4/5 (29,706 reviews) | |
| ✓ On by default Camouflage, with OpenVPN | See site | See site | No | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.3/5 (31,823 reviews) | |
| Turn on manually Stealth, free plan too | $2.99/mo | 12 months: $35.88 | Yes | 30 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 2.1/5 (1,040 reviews) | |
| Turn on manually StealthVPN / OpenWeb | $12.50/mo | 24 months: $300 | No | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 1.3/5 (110 reviews) | |
| Turn on manually Shadowsocks, OpenVPN only | $2.03/mo | 40 months: $81.2 | No | 30 days | ✗ | ✗ | ✗ | ✗ | ✗ Blocked | 4.2/5 (11,033 reviews) | |
| Turn on manually selected servers | $2.19/mo | 28 months: $61.32 | No | 45 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.0/5 (24,178 reviews) | |
| Turn on manually switch to OpenVPN | $1.69/mo | 60 months: $101.55 | No | 31 days | ? | ? | ✗ | ✓ | ✗ Blocked | 4.4/5 (17,994 reviews) | |
| ✓ On by default TrustTunnel | $2.99/mo | 24 months: $71.76 | Yes | 30 days | ✓ | ✗ | ✓ | ✓ | Official site blocked; our special link opens (3.7 s) | 4.3/5 (290 reviews) | |
| Turn on manually QUIC / Shadowsocks / LWO | $5.61/mo | €5/mo | No | 14 days | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 3.2/5 (192 reviews) | |
| Turn on manually Stealth / WStunnel | $5.75/mo | 12 months: $69 | Yes | See site | ✗ | ✗ | ✗ | ✓ | ✗ Blocked | 4.7/5 (13,355 reviews) | |
| Turn on manually Scramble, OpenVPN TCP | See site | See site | No | 30 days | ✓ | ✗ | ✗ | ✗ | ✗ Blocked | 4.4/5 (2,695 reviews) | |
| Not listed | $7.08/mo | 12 months: $84.99 | Yes | 30 days | ✓ | ✓ | ✓ | ✓ | ✓ Yes (3.5 s) | No page |
Prices checked 2026-11-10 on each vendor's pricing page (cheapest long plan, USD). Check the vendor's checkout for the final price.
Obfuscation checked 2026-11-14 on each vendor's site and help center: "on by default" = nothing to set; "turn on manually" = switch protocol or mode in settings; "not listed" = the vendor describes no obfuscation.
Payment methods checked 2026-11-10 on each vendor's payment pages: all 14 take cards and PayPal; ✗ = not listed, ? = the vendor's own pages disagree.
China access: whether the official website opens from mainland China networks (tests the website only, not the VPN connection). Last checked 2026-11-18 01:02 Beijing time.
Trustpilot score and review count checked 2026-11-10.
Run the command
Enter privileged EXEC mode on the Cisco device and run:
show crypto ipsec sa
The command is available on many Cisco IOS and IOS XE platforms. Exact output and supported options vary by software version and device type. On some platforms, you can narrow the results by specifying a peer address or other supported parameter. Use show crypto ipsec sa? to see the options available on your device.
The output may include several SAs if the device has multiple VPN peers, traffic selectors, or tunnels. For a quick view of the IPsec tunnel summary, many Cisco platforms also support:
show crypto ipsec sa summary
If the command is rejected or produces unexpected output, confirm that you are in the correct CLI mode and check the platform’s command reference. IPsec VPN: How It Works, Benefits, and When to Use It
What the output shows
An IPsec SA describes how a particular flow of traffic is protected between peers. The command commonly reports details such as:
- The local and remote crypto endpoints.
- The local and remote identities, often shown as traffic selectors or proxy identities.
- The inbound and outbound ESP SAs.
- The encryption and integrity algorithms in use.
- Encapsulated and decapsulated packet counters.
- Replay, authentication, or decryption errors, where supported.
A simplified excerpt might look like this:
interface: GigabitEthernet0/0
Crypto map tag: VPN-MAP, local addr 198.51.100.10
#pkts encaps: 1200, #pkts encrypt: 1200, #pkts digest: 1200
#pkts decaps: 1187, #pkts decrypt: 1187, #pkts verify: 1187
The interface, crypto map, and counter labels can differ by platform. Treat this as an illustrative example, not a template for every Cisco device.
Understand the key counters
Counters are often the quickest way to tell whether the tunnel is carrying traffic: Clash Meta for iOS: What It Is, How to Install It, and What to Know
- Encapsulated or encrypted packets: Traffic the device has sent through IPsec.
- Decapsulated or decrypted packets: Traffic the device has received and processed from IPsec.
- Authentication or verification errors: Possible problems validating incoming protected packets.
- Replay errors: Packets rejected because they appear duplicated or outside the expected sequence window.
Counter names and groupings vary. Compare the relevant counters before and after generating traffic, rather than relying only on their current totals.
Interpret common IPsec SA output indicators
| Output indicator | What it represents | Healthy clue | Possible concern | Useful next check |
|---|---|---|---|---|
| SA entry | A negotiated IPsec security association | Expected peer and traffic selectors appear | No matching SA is listed | Check IKE status and configuration |
| `#pkts encaps` | Packets encrypted and sent | Counter increases during matching traffic | Stays unchanged when traffic is expected | Verify traffic and selectors |
| `#pkts decaps` | Packets decrypted and received | Counter increases with return traffic | No inbound packets appear | Check peer status and routing |
| SPI | Identifier for an SA | Inbound and outbound SAs are present | Missing or unexpected SA entries | Compare both peers |
| Peer address | Remote VPN endpoint | Matches the intended peer | Wrong or unreachable peer | Check connectivity and peer configuration |
| Lifetime | Remaining SA lifetime | SA is present and refreshes as expected | SA expires without re-establishing | Review IKE and rekey status |
| Traffic selectors | Protected source and destination traffic | Match the intended networks | Networks differ across peers | Compare ACLs and VPN selectors |
Compiled November 2026; check the provider's site for current details.
Interpret the SA status
A useful first question is whether the device has IPsec SAs for the traffic you expect to protect. An established SA should show peer and transform information, along with inbound and outbound SA details. The exact indicators differ among Cisco platforms, so check the output format for the device’s software release. Urban VPN Chrome: How It Works, Features, and What to Know
Next, confirm that the selectors match the intended traffic. These commonly identify the local and remote subnets or hosts covered by the tunnel. If the selectors do not match the traffic you are testing, packets may bypass IPsec or fail to match the expected policy.
Then check whether the counters change:
- Note the encapsulation and decapsulation values.
- Send traffic between hosts that should use the VPN.
- Run
show crypto ipsec saagain. - Check whether the relevant counters increased.
If outbound counters rise but inbound counters do not, the local device may be encrypting traffic without receiving a corresponding response. If inbound counters rise but outbound counters remain unchanged, investigate the return path and the traffic being generated locally. These patterns point to areas to investigate. They do not prove a single root cause.
| Observation | What it may indicate | What to check next |
|---|---|---|
| No relevant IPsec SA | The tunnel may not have negotiated, or traffic may not match the policy | IKE status, crypto policy, peer reachability, and selectors |
| Encapsulation increases; decapsulation does not | Outbound traffic is protected, but return traffic is not arriving or matching | Remote peer, routing, firewall rules, and remote selectors |
| Decapsulation increases; encapsulation does not | Incoming protected traffic arrives, but local return traffic may not match | Local routing, host responses, and local selectors |
| Error counters increase | Packets may be failing validation or replay checks | Transform compatibility, peer configuration, and packet path |
Troubleshoot with related commands
show crypto ipsec sa focuses on the data-protection layer. If the output does not explain the problem, use commands that inspect related parts of the VPN configuration and negotiation. Common examples include: Urban VPN Extension for Edge: How to Install and Use It
show crypto ikev2 sa
show crypto isakmp sa
show crypto map
show access-lists
show ip route
Use the IKE command that matches the configuration: IKEv2 or IKEv1 (ISAKMP). An IKE SA and an IPsec SA are not the same thing. IKE negotiates and manages the relationship between peers; IPsec SAs protect the selected data traffic. A peer can be reachable, or IKE can be established, while the expected IPsec traffic is still not passing.
When troubleshooting, verify these items:
- Peer reachability: Confirm that the remote peer address is reachable through the expected path.
- Traffic selectors: Check that both peers agree on the local and remote protected networks.
- Policies and transforms: Confirm that the peers have compatible proposals and that the intended crypto map or tunnel policy is applied.
- Routing: Ensure traffic is routed toward the correct interface and is not taking an unintended path.
- Access controls: Check that ACLs and firewall rules permit the required traffic without incorrectly excluding it from encryption.
- NAT behavior: If NAT is present, verify that VPN traffic is handled as intended and that any required NAT exemption is in place.
Avoid changing several settings at once. Collect the relevant output first, identify a specific mismatch, then make and verify one change at a time.
Common limitations and safe use
The command reports the device’s current IPsec SA state. It does not, by itself, confirm that an application is working end to end. A tunnel can have active SAs while traffic is blocked by a host firewall, an incorrect route, or a remote-side policy. Likewise, counters may remain unchanged simply because no matching traffic has been sent. Urban VPN for Edge Extension: How to Install and Use It
Counter resets may occur when an SA is cleared or renegotiated, or when the device reloads. For that reason, counter changes over a short test are usually more informative than absolute totals. Be cautious with commands that clear SAs: clearing them can interrupt VPN traffic and force renegotiation. Follow your organization’s maintenance procedures before using disruptive commands in production.
Choose a troubleshooting step for an IPsec VPN
| Observed symptom | First check | Related command | What to look for | Safe-use note |
|---|---|---|---|---|
| No IPsec SA appears | Confirm matching traffic is sent | `show crypto ipsec sa` | Whether an SA is created | Avoid generating unintended traffic |
| IKE is not established | Check peer reachability and IKE state | `show crypto isakmp sa` or `show crypto ikev2 sa` | Peer and negotiation state | Use the command for the configured IKE version |
| Encapsulation stays at zero | Verify source, destination, and selectors | `show access-lists` | Matching traffic and ACL counters | Do not broaden selectors without approval |
| Encapsulation rises but decapsulation does not | Check the remote peer and return path | `show crypto ipsec sa` | Inbound counters and peer status | Coordinate checks with the remote administrator |
| Counters rise but applications fail | Check routing, policies, and application reachability | `show crypto session` | Session status and relevant details | Counters alone do not prove application health |
| SA repeatedly expires | Review negotiation and rekey settings | IKE show command for the configured version | Stable re-establishment and peer state | Avoid clearing active SAs during production |
| Output is too broad | Narrow the display to the relevant peer or session | `show crypto ipsec sa` | The intended tunnel’s entries | Syntax varies by platform and software release |
Compiled November 2026; check the provider's site for current details.
Recommendation
Start with show crypto ipsec sa, identify the SA for the correct peer and traffic selectors, and compare packet counters before and after a controlled connectivity test. If the expected SAs are missing or counters do not behave as expected, use the matching IKE, routing, ACL, and policy commands to isolate the cause. Check platform-specific documentation when command syntax or output differs. Urban VPN Extension for Microsoft Edge: Setup, Features, and Safety
