China Route Planner
Show crypto IKEv2 sa: How to Check IKEv2 Security Associations on Cisco Devices
VPN

Show crypto IKEv2 sa: How to Check IKEv2 Security Associations on Cisco Devices

Learn how to use show crypto ikev2 sa to inspect Cisco IKEv2 sessions, interpret output, and troubleshoot common VPN issues.

Charlotte Adams
· 7 min read

The Cisco IOS and IOS XE command show crypto ikev2 sa displays the device’s IKEv2 security associations (SAs), which represent the control-plane relationship negotiated with a VPN peer. Use it to confirm whether an IKEv2 session exists, identify its peer and state, and gather clues when a tunnel is not coming up. The exact fields and formatting vary by software release and platform, but the command is a useful first check for site-to-site and remote-access VPN troubleshooting.

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 →

IKEv2 SA states and what they indicate

Output clueWhat it representsWhat to check nextTypical interpretation
READYIKEv2 SA is establishedCheck child SAs and trafficIKE control plane is up
NegotiatingSA establishment is in progressReview peer reachability and logsExchange may still be underway
No matching SANo IKEv2 SA matches the queryCheck peer address and VRFSA may be absent or filtered
Peer addressRemote IKE endpointCompare with configurationConfirms which peer is involved
Local addressLocal IKE endpointCheck interface and routingIdentifies the local endpoint
IKE versionNegotiated IKE protocol versionCompare with peer settingsShould match the intended version
Encryption and integrityNegotiated protection algorithmsCompare both peers’ proposalsMismatch can prevent negotiation
LifetimeSA expiration informationCheck rekey activityHelps identify expiry or rekey issues

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

What the command shows

IKEv2 establishes and manages the secure relationship between two VPN endpoints. During negotiation, the peers authenticate and agree on parameters for protecting IKE messages. They then use that relationship to negotiate IPsec SAs that protect user traffic.

Enter privileged EXEC mode and run:

show crypto ikev2 sa

On some IOS and IOS XE releases, the command also supports filters or more detailed output. Check the device’s command help if you need to narrow the result:

show crypto ikev2 sa?

The output typically lists one or more sessions, with fields such as: FortiGate Client VPN: Setup, Configuration, and Troubleshooting

  • Peer address: The remote device’s IP address.
  • Local address: The address used by the local device for the IKE exchange.
  • Session status: A state indicating whether negotiation is in progress or established.
  • IKE version or exchange details: Information about the IKEv2 session.
  • Session or connection ID: An identifier useful for correlating output with other commands.
  • Negotiated parameters: Depending on the platform and release, details such as encryption, integrity, PRF, or Diffie-Hellman group.

A single device can have multiple SAs to different peers. A peer may also have multiple entries, for example when there are separate sessions or overlapping connection attempts. Interpret each entry in the context of your configuration and platform.

Show crypto IKEv2 sa: How to Check IKEv2 Security Associations on Cisco Devices: Checklist

How to interpret the output

The most important question is whether the expected peer appears and whether its IKEv2 SA is established. A missing entry can indicate that no negotiation has started, the peer is unreachable, or the device is not matching traffic or configuration to an IKEv2 profile.

A session reported as established generally means IKEv2 negotiation succeeded. It does not necessarily prove that application traffic can pass. Traffic may still fail because of IPsec SA problems, incorrect traffic selectors, routing, access lists, NAT, or firewall policy.

What you see What it may mean What to check next
Expected peer and established state IKEv2 control-plane negotiation is up Check IPsec SAs and test traffic
Peer appears, but negotiation is not established Exchange may be in progress or failing Review authentication, proposals, reachability, and logs
No entry for the peer No active IKEv2 SA is displayed Check initiation, routing, profile matching, and peer address
More than one entry for a peer Multiple sessions or attempts may exist Compare identifiers, local addresses, and timestamps where available

Treat state names and field labels as release-dependent. Use the device’s own output and documentation rather than assuming that every Cisco platform displays identical fields. Free VPN to Switch Country: What Works and What to Check

Troubleshooting workflow options for IKEv2 SAs

StepCommand or checkWhat it tells youWhen to use it
1. Inspect IKE SAs`show crypto ikev2 sa`Peer state and negotiated IKE detailsStart of an investigation
2. Inspect child SAs`show crypto ipsec sa`IPsec SAs and traffic countersIKE is up but traffic fails
3. Verify configurationReview IKEv2 profile and proposalsLocal authentication and policyNegotiation fails or settings differ
4. Check reachabilityTest routing and peer connectivityWhether packets can reach the peerNo SA or repeated timeouts
5. Review logsCheck relevant IKEv2 messagesNegotiation errors and event sequenceState is unclear or changes repeatedly
6. Compare peer settingsCheck both devices’ proposals and identitiesWhether parameters alignSuspected configuration mismatch
7. Retest after changesRun the show commands againWhether the SA state or counters changedAfter correcting a suspected issue

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

A practical troubleshooting workflow

Start by confirming that you are checking the right device, peer address, and VPN context. Then run show crypto ikev2 sa before and after generating traffic if the tunnel is expected to start on demand. Some deployments initiate negotiation only when matching traffic is sent.

If the expected SA is missing or not established, work through these checks: Free VPN to Change Country: What Works and What to Watch For

  1. Confirm IP reachability. Verify that the local device can reach the peer using the intended source address and route. Check upstream filtering for UDP port 500 and, when NAT traversal is used, UDP port 4500.
  2. Review the IKEv2 profile. Confirm the profile matches the peer and that identity matching is correct.
  3. Compare authentication settings. Check that both sides use compatible authentication methods and matching credentials, certificates, or trust configuration.
  4. Compare proposals. Ensure the peers have at least one compatible set of encryption, integrity, PRF, and Diffie-Hellman settings.
  5. Check time and certificates. If certificate authentication is configured, verify certificate validity, trust, identity, and device clock.
  6. Look at logs and counters. Use targeted debugging only when needed and with care on production devices, since verbose debugging can affect performance or expose sensitive information.

Once the IKEv2 SA is established, verify the IPsec layer as well. A healthy IKE relationship can coexist with missing or unusable IPsec SAs.

Use show crypto ikev2 sa as part of a broader check, not as the only test. Commands available and their output can differ between IOS, IOS XE, and other Cisco platforms.

Common supporting commands include:

  • show crypto ipsec sa, Shows IPsec SAs, traffic selectors, and packet counters. Increasing encapsulation and decapsulation counters during a test can indicate that traffic is traversing the VPN.
  • show crypto session, Provides a higher-level view of crypto sessions and their status.
  • show crypto ikev2 proposal, Displays configured IKEv2 proposals on platforms that support the command.
  • show running-config, Helps verify the IKEv2 profile, proposal, keyring, crypto map, or tunnel configuration. Handle configuration output according to your organization’s security policies.
  • show logging, Helps identify negotiation failures, authentication errors, and other relevant events.

The distinction matters: IKEv2 SAs protect IKE negotiation messages and manage the relationship between peers, while IPsec SAs carry the protected network traffic. Check both layers when users report that a VPN is “up” but traffic does not work. Free VPN That Allows You to Choose Location: What to Use

Show crypto IKEv2 sa: How to Check IKEv2 Security Associations on Cisco Devices: Key points

Related Cisco commands and their uses

CommandPrimary focusUseful evidenceLimitation
`show crypto ikev2 sa`IKEv2 control-plane SAsPeer state and negotiated IKE detailsDoes not by itself prove user traffic passes
`show crypto ipsec sa`IPsec child SAsEncapsulation and decapsulation countersDoes not explain every IKE negotiation failure
`show crypto ikev2 profile`IKEv2 profile configurationMatching and authentication settingsShows configuration, not live SA health
`show crypto ikev2 proposal`IKEv2 proposal configurationSupported algorithms and parametersDoes not confirm which proposal was negotiated
`show crypto session`Crypto session summarySession status and related detailsMay provide less IKE-specific detail
`show logging`Device event messagesErrors and negotiation eventsLogs may not include the full exchange
`show running-config`Active device configurationRelevant crypto and interface settingsRequires interpretation and filtering

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

Common pitfalls

One common mistake is reading an established IKEv2 SA as proof that the whole VPN is working. Always confirm that the required IPsec SAs exist and that traffic counters change during a controlled test.

Another is comparing output from different Cisco releases as if every field or state label were identical. Focus on the peer, status, and relevant negotiated details, then consult the command reference for the exact platform and software version. Xforticlientvpnsetup_7.2.10.1217_x64.exe: Download and Install Guide

Finally, avoid clearing SAs as a first diagnostic step. Clearing them can interrupt active traffic and may only make the issue temporarily disappear. Capture the current output and relevant logs first, then follow your change-control process if a reset is necessary.

Recommendation

Run show crypto ikev2 sa first to confirm the peer and IKEv2 session state. If the session is established but traffic still fails, check show crypto ipsec sa, routing, selectors, and packet counters. For a missing or failed session, compare reachability, authentication, and proposals on both peers, and use platform-specific documentation to interpret the output accurately.

© 2026 Wayfarer Lantern Media · Wayfarer Lantern Media Ltd.