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.
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.
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 variant | Scope | What it shows | Best used for |
|---|---|---|---|
| `show crypto ikev2 sa` | All IKEv2 SAs | Current IKEv2 SA details | General status check |
| `show crypto ikev2 sa detail` | All IKEv2 SAs | More detailed SA information | Investigating a specific session |
| `show crypto ikev2 sa remote <address>` | One remote peer | SAs associated with that peer | Checking a known peer |
| `show crypto ikev2 sa summary` | All IKEv2 SAs | A concise status overview | Quick health checks |
| `show crypto ipsec sa` | IPsec SAs | IPsec tunnel and traffic details | Verifying data-plane SAs |
| `show crypto session` | Crypto sessions | Session-level status and peers | Cross-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.
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 state | What it indicates | What to check next | Concern level |
|---|---|---|---|
| Local address | Local IKE endpoint | Confirm the expected interface or address | Low if expected |
| Remote address | Peer IKE endpoint | Confirm the peer address | Low if expected |
| IKE state is established | IKEv2 negotiation completed | Check IPsec SA and traffic | Normal |
| IKE state is negotiating | IKEv2 setup is in progress | Review peer reachability and logs | Investigate if persistent |
| No matching SA | No SA matches the query | Check peer address and device context | Investigate |
| Rekey or reauthentication | SA is being renewed | Check whether the new SA establishes | Normal 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.
Choose the right check when a tunnel is missing or failing Free VPN That Allows You to Choose Location: What to Know
| Situation | First check | Useful follow-up | What it helps distinguish |
|---|---|---|---|
| No IKEv2 SA appears | Run the IKEv2 SA command | Verify peer address and device | Wrong query versus absent session |
| SA is negotiating | Inspect IKEv2 details | Review configuration and logs | Setup delay versus negotiation failure |
| IKEv2 SA is established, traffic fails | Check IPsec SA | Verify selectors and traffic counters | IKE success versus data-plane issue |
| Peer is unreachable | Check routing and reachability | Confirm endpoint addresses | Network path versus crypto setup |
| SA appears on the wrong peer | Filter by remote address | Compare configured peer values | Peer mismatch |
| Tunnel drops during renewal | Inspect SA state over time | Review rekey settings and logs | Rekey 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:
- 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.
- Verify peer and policy configuration. Compare the local and remote identities, IKEv2 profile, proposal, and authentication settings on both endpoints.
- Check credentials. Confirm that the configured pre-shared key or certificate settings match the peer configuration.
- Review IPsec settings. Ensure that the IPsec profile and traffic selectors are compatible at both ends.
- 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

