High Plains Science Notes
Show crypto IKEv2 sa: How to Check IKEv2 Security Associations
VPN

Show crypto IKEv2 sa: How to Check IKEv2 Security Associations

Learn how the Cisco IOS show crypto ikev2 sa command displays tunnel status, peer details, and troubleshooting clues.

Caspian Udeh-Fairweather
· 7 min read

The Cisco IOS and IOS XE command show crypto ikev2 sa displays Internet Key Exchange version 2 (IKEv2) security associations on a router. It helps you verify whether the router has established an IKEv2 session with a peer and review details such as the peer address, session state, and traffic counters. Use it as a starting point for checking a VPN, then confirm that the corresponding IPsec security associations are also active.

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 `show crypto ikev2 sa` command variants

Command or variantScopeWhat it showsBest used for
`show crypto ikev2 sa`All IKEv2 SAsCurrent IKEv2 SA detailsGeneral status check
`show crypto ikev2 sa detail`All IKEv2 SAsMore detailed SA informationInvestigating a specific session
`show crypto ikev2 sa remote <address>`One remote peerSAs associated with that peerChecking a known peer
`show crypto ikev2 sa summary`All IKEv2 SAsA concise status overviewQuick health checks
`show crypto ipsec sa`IPsec SAsIPsec tunnel and traffic detailsVerifying data-plane SAs
`show crypto session`Crypto sessionsSession-level status and peersCross-checking connection state

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

What the command shows

IKEv2 establishes and maintains the control-plane relationship between VPN peers. The command reports the IKEv2 security associations (SAs) currently known to the device. Depending on the Cisco platform and software release, the output may include:

  • Local and remote peer addresses
  • IKEv2 session or SA identifier
  • Current state of the exchange
  • Authentication and encryption information
  • Negotiated lifetime or remaining time
  • Initiator and responder role
  • Encapsulated and decapsulated packet counters
  • Details for individual IKEv2 sessions

The exact fields and labels can vary by platform and release. Treat the output as a status snapshot: it shows what the device knows at the time the command runs, not necessarily the full history of how the session was negotiated.

Show crypto IKEv2 sa: How to Check IKEv2 Security Associations: Checklist

Basic syntax and useful variants

Run the command from privileged EXEC mode:

Router# show crypto ikev2 sa

On many Cisco devices, the command also supports a detailed view: FortiGate Client VPN: Setup, Security, and Troubleshooting Guide

Router# show crypto ikev2 sa detailed

The detailed form can expose more information about a session, although the available options depend on the device’s software. To see supported variations on your router, use command help:

Router# show crypto ikev2 sa?

If the output lists several peers, match the local and remote addresses to the tunnel you are investigating. On systems that support filtering or session-specific options, check the command help before using them. Syntax is not identical across every Cisco platform.

Interpret common IKEv2 SA output

Output field or stateWhat it indicatesWhat to check nextConcern level
Local addressLocal IKE endpointConfirm the expected interface or addressLow if expected
Remote addressPeer IKE endpointConfirm the peer addressLow if expected
IKE state is establishedIKEv2 negotiation completedCheck IPsec SA and trafficNormal
IKE state is negotiatingIKEv2 setup is in progressReview peer reachability and logsInvestigate if persistent
No matching SANo SA matches the queryCheck peer address and device contextInvestigate
Rekey or reauthenticationSA is being renewedCheck whether the new SA establishesNormal if successful

Compiled November 2026; check the provider's site for current details. Free VPN to Switch Country: Safe Ways to Change Your Virtual Location

How to interpret the output

The most useful first check is the state of the IKEv2 SA. A state indicating that the exchange is established generally means the peers have completed IKEv2 negotiation and created a control-plane SA. A session that is missing, incomplete, or repeatedly changing state may indicate a negotiation or connectivity problem.

Next, verify the peer addresses. Confirm that the remote address is the intended VPN endpoint and that the local address matches the interface or address expected for the connection. This can uncover issues such as a peer using the wrong public IP, traffic reaching a different router, or a tunnel being built from an unexpected interface.

Counters provide another helpful clue. If the displayed packet counts increase while you generate traffic that should cross the tunnel, the device is processing traffic associated with the session. If the IKEv2 SA is established but the counters remain unchanged, the tunnel may be idle, traffic may not match the VPN policy, or the data-plane IPsec SAs may not be functioning as expected. Counter meaning and display vary by release, so compare results over time rather than relying on a single snapshot.

What you see What it usually suggests What to check next
No IKEv2 SA listed No current IKEv2 session is present Peer reachability, configuration, and negotiation logs
SA appears established IKEv2 control-plane negotiation succeeded IPsec SAs, routing, and traffic counters
SA is present but not established Negotiation may be incomplete or failing Authentication, proposals, policy, and peer logs
Established SA with no expected traffic Control plane may be up, but user traffic is absent Traffic selectors, routing, ACLs, and IPsec counters

These observations are diagnostic clues, not guaranteed conclusions. A tunnel can be established while application traffic still fails because of routing, access-control, NAT, or IPsec configuration issues. Free VPN to Change Country: What to Know Before You Connect

IKEv2 SAs versus IPsec SAs

An established IKEv2 SA does not by itself prove that user data is passing through the VPN. IKEv2 handles peer negotiation and management; IPsec SAs protect the actual traffic. A working site-to-site tunnel typically needs the relevant IPsec SAs as well as an established IKEv2 session.

Use the following commands together where supported:

Router# show crypto ikev2 sa
Router# show crypto ipsec sa

The first checks the IKEv2 session. The second reports IPsec information, including traffic selectors and encryption or decryption counters. If IKEv2 is established but the IPsec SAs are absent, investigate the IPsec profile, transform settings, traffic selectors, and whether interesting traffic has triggered the data-plane negotiation.

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

Choose the right check when a tunnel is missing or failing Free VPN That Allows You to Choose Location: What to Know

SituationFirst checkUseful follow-upWhat it helps distinguish
No IKEv2 SA appearsRun the IKEv2 SA commandVerify peer address and deviceWrong query versus absent session
SA is negotiatingInspect IKEv2 detailsReview configuration and logsSetup delay versus negotiation failure
IKEv2 SA is established, traffic failsCheck IPsec SAVerify selectors and traffic countersIKE success versus data-plane issue
Peer is unreachableCheck routing and reachabilityConfirm endpoint addressesNetwork path versus crypto setup
SA appears on the wrong peerFilter by remote addressCompare configured peer valuesPeer mismatch
Tunnel drops during renewalInspect SA state over timeReview rekey settings and logsRekey failure versus transient change

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

Troubleshooting when a session is missing or failing

If the command shows no session, or the session does not reach an established state, troubleshoot in a controlled order:

  1. Check reachability. Confirm that the router can reach the peer’s address and that intermediate devices permit IKE traffic. IKE commonly uses UDP port 500, while NAT traversal commonly uses UDP port 4500.
  2. Verify peer and policy configuration. Compare the local and remote identities, IKEv2 profile, proposal, and authentication settings on both endpoints.
  3. Check credentials. Confirm that the configured pre-shared key or certificate settings match the peer configuration.
  4. Review IPsec settings. Ensure that the IPsec profile and traffic selectors are compatible at both ends.
  5. Inspect logs. Use available system messages or IKEv2 debugging commands to identify negotiation errors. Debugging can generate substantial output, so use it carefully, especially on a production router.

After correcting a problem, rerun show crypto ikev2 sa and check whether the state changes. If appropriate for your environment, clear the relevant session and allow it to negotiate again. Clearing SAs interrupts the VPN temporarily, so follow operational procedures and avoid broad clear commands unless you understand their impact.

Recommendation

Start with show crypto ikev2 sa to confirm that the intended peer has an established IKEv2 session. Then check show crypto ipsec sa and generate controlled test traffic to verify that data-plane counters move. If either stage fails, use the session details and device logs to narrow the issue before changing configuration. Xforticlientvpnsetup_7.2.10.1217_x64.exe: Download and Install Guide

© 2026 Sagebrush Field Media · Sagebrush Field Media LLC