VPN

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

韩知予··11 min
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.

nord-vpn-microsoft-edge
nord-vpn-microsoft-edge

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.

NordVPN — fast, secure VPN

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

CommandBest used forInformation shownTypical scopeMain limitation
`show crypto ipsec sa`Checking IPsec data-plane SAsEncrypt and decrypt counters, addresses, SPI, lifetimesIPsec SAsDoes not alone confirm end-to-end application access
`show crypto isakmp sa`Checking IKEv1 negotiationIKE SA state and peersIKEv1 control planeDoes not show IPsec traffic counters
`show crypto ikev2 sa`Checking IKEv2 negotiationIKEv2 SA state and peersIKEv2 control planeDoes not show IPsec traffic counters
`show crypto session`Viewing session summariesPeer, status, and session detailsCrypto sessionsLess detailed IPsec SA counters
`show access-lists`Reviewing traffic selectors and permit rulesACL entries and match countersConfigured access listsDoes not prove that an SA is active
`show running-config`Reviewing VPN configurationCrypto maps, profiles, and related settingsDevice configurationShows configuration, not live tunnel health

Compiled November 2026; check the provider's site for current details.

VPN prices compared
VPNObfuscationFrom / monthPlanFree planRefundAlipayWeChatUnionPayCryptoWebsite opens in ChinaTrustpilot
ZoogVPNTurn on manually
Shadow
$2.49/mo27 months: $59.99Yes7 days✓✓✓✓Official site blocked; our special link opens (4.4 s)4.2/5 (195 reviews)
NordVPNTurn on manually
Obfuscated Servers / NordWhisper
$3.49/mo27 months: $94.23No30 days?✗✓✓✗ Blocked4.2/5 (51,628 reviews)
ExpressVPN✓ On by default
all servers
$3.00/mo28 months: $84No30 days✗✗✓✗✗ Blocked4.4/5 (29,706 reviews)
Surfshark✓ On by default
Camouflage, with OpenVPN
See siteSee siteNo30 days✗✗✗✓✗ Blocked4.3/5 (31,823 reviews)
Proton VPNTurn on manually
Stealth, free plan too
$2.99/mo12 months: $35.88Yes30 days✗✗✗✓✗ Blocked2.1/5 (1,040 reviews)
Astrill VPNTurn on manually
StealthVPN / OpenWeb
$12.50/mo24 months: $300NoSee site✗✗✗✓✗ Blocked1.3/5 (110 reviews)
Private Internet AccessTurn on manually
Shadowsocks, OpenVPN only
$2.03/mo40 months: $81.2No30 days✗✗✗✗✗ Blocked4.2/5 (11,033 reviews)
CyberGhostTurn on manually
selected servers
$2.19/mo28 months: $61.32No45 days✗✗✗✓✗ Blocked4.0/5 (24,178 reviews)
PureVPNTurn on manually
switch to OpenVPN
$1.69/mo60 months: $101.55No31 days??✗✓✗ Blocked4.4/5 (17,994 reviews)
AdGuard VPN✓ On by default
TrustTunnel
$2.99/mo24 months: $71.76Yes30 days✓✗✓✓Official site blocked; our special link opens (3.7 s)4.3/5 (290 reviews)
MullvadTurn on manually
QUIC / Shadowsocks / LWO
$5.61/mo€5/moNo14 days✗✗✗✓✗ Blocked3.2/5 (192 reviews)
WindscribeTurn on manually
Stealth / WStunnel
$5.75/mo12 months: $69YesSee site✗✗✗✓✗ Blocked4.7/5 (13,355 reviews)
StrongVPNTurn on manually
Scramble, OpenVPN TCP
See siteSee siteNo30 days✓✗✗✗✗ Blocked4.4/5 (2,695 reviews)
LightXtreme 闪连Not listed$7.08/mo12 months: $84.99Yes30 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

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

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 indicatorWhat it representsHealthy cluePossible concernUseful next check
SA entryA negotiated IPsec security associationExpected peer and traffic selectors appearNo matching SA is listedCheck IKE status and configuration
`#pkts encaps`Packets encrypted and sentCounter increases during matching trafficStays unchanged when traffic is expectedVerify traffic and selectors
`#pkts decaps`Packets decrypted and receivedCounter increases with return trafficNo inbound packets appearCheck peer status and routing
SPIIdentifier for an SAInbound and outbound SAs are presentMissing or unexpected SA entriesCompare both peers
Peer addressRemote VPN endpointMatches the intended peerWrong or unreachable peerCheck connectivity and peer configuration
LifetimeRemaining SA lifetimeSA is present and refreshes as expectedSA expires without re-establishingReview IKE and rekey status
Traffic selectorsProtected source and destination trafficMatch the intended networksNetworks differ across peersCompare 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:

  1. Note the encapsulation and decapsulation values.
  2. Send traffic between hosts that should use the VPN.
  3. Run show crypto ipsec sa again.
  4. 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

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.

How to Use show crypto IPsec sa to Check IPsec VPN Status: Key points

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 symptomFirst checkRelated commandWhat to look forSafe-use note
No IPsec SA appearsConfirm matching traffic is sent`show crypto ipsec sa`Whether an SA is createdAvoid generating unintended traffic
IKE is not establishedCheck peer reachability and IKE state`show crypto isakmp sa` or `show crypto ikev2 sa`Peer and negotiation stateUse the command for the configured IKE version
Encapsulation stays at zeroVerify source, destination, and selectors`show access-lists`Matching traffic and ACL countersDo not broaden selectors without approval
Encapsulation rises but decapsulation does notCheck the remote peer and return path`show crypto ipsec sa`Inbound counters and peer statusCoordinate checks with the remote administrator
Counters rise but applications failCheck routing, policies, and application reachability`show crypto session`Session status and relevant detailsCounters alone do not prove application health
SA repeatedly expiresReview negotiation and rekey settingsIKE show command for the configured versionStable re-establishment and peer stateAvoid clearing active SAs during production
Output is too broadNarrow the display to the relevant peer or session`show crypto ipsec sa`The intended tunnel’s entriesSyntax 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