Show Crypto IKEv2 SA: How to Check Cisco IKEv2 Security Associations

Learn how to use show crypto ikev2 sa to inspect Cisco IKEv2 sessions, interpret output, and troubleshoot VPN connections.
The Cisco IOS command show crypto ikev2 sa displays the device’s IKEv2 security associations (SAs), which represent the negotiated control-plane relationship between IKEv2 peers. Use it to confirm whether a VPN peer has an active IKEv2 session and to inspect details such as the peer address, session state, and negotiated security settings. The exact output varies by platform and software version.
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 common ways to inspect Cisco IKEv2 security associations
| Method | What it shows | Best for | Key limitation |
|---|---|---|---|
| `show crypto ikev2 sa` | IKEv2 SA state and peer details | Checking IKEv2 negotiation | Does not show all IPsec SA details |
| `show crypto ikev2 sa detailed` | Expanded IKEv2 SA information | Investigating peer or policy details | Output varies by platform and software |
| `show crypto ipsec sa` | IPsec SAs, traffic counters, and transforms | Verifying protected traffic | Does not replace IKEv2 SA inspection |
| `show crypto session` | Summary of crypto sessions and status | Quick session overview | Less focused on IKEv2 detail |
| `show running-config` | Configured IKEv2 and crypto settings | Comparing configuration with status | Shows configuration, not live SA state |
| `show logging` | Relevant system messages, if logged | Finding negotiation errors | Logs may not contain the full cause |
Compiled November 2026; check the provider's site for current details.
Run the command
Enter privileged EXEC mode on the Cisco router or firewall, then run:
show crypto ikev2 sa
On supported platforms, you can request more detail with:
show crypto ikev2 sa detail
If the detailed form is unavailable on your device, check the command reference for its software release or use the standard command and related IKEv2 debugging and configuration commands.
A typical entry may include the local and remote addresses, VRF, session identifier, status, and negotiated algorithms. Treat the field names and formatting as platform-specific: IOS, IOS XE, and other Cisco operating systems may present similar information differently. Status Code 407 Proxy Authentication Required GitLab: Causes and Fixes
Read the output
Start with the remote peer and the session status. Confirm that the listed peer is the device you expect and that the association has reached an established state. A session that is missing, incomplete, or repeatedly changing state may indicate a negotiation problem.
Common fields and what they generally tell you include:
- Peer or remote address: The IP address of the other IKEv2 endpoint.
- Local address: The address used by your device for the IKEv2 connection.
- State or status: Whether the IKEv2 negotiation is in progress or established. Exact labels depend on the platform.
- Role: Whether the device is acting as the initiator or responder.
- Encryption and integrity algorithms: The negotiated IKE security algorithms, when shown.
- Authentication method: The method used to authenticate the peers, such as a pre-shared key or certificates.
- Lifetime or rekey information: Timing details for the association, if included.
Do not assume that a single label or field has identical meaning across all Cisco releases. Compare the output with the documentation for your platform and version.
Understand IKEv2 SA versus IPsec SA
IKEv2 and IPsec SAs serve related but distinct purposes. The IKEv2 SA protects control traffic used to negotiate and manage the VPN. The IPsec SAs protect the data traffic sent through the tunnel. As a result, an established IKEv2 SA is a useful sign, but it does not prove that the data-plane tunnel is carrying traffic. FortiGate Client VPN: Setup, Configuration, and Troubleshooting
| Command | What it shows | When to use it |
|---|---|---|
show crypto ikev2 sa |
IKEv2 peer sessions and negotiation status | Check whether the IKEv2 control association exists |
show crypto ipsec sa |
IPsec SAs, selectors, and packet counters | Verify data-plane SAs and whether traffic is encrypted or decrypted |
show crypto session |
A broader view of crypto session status on supported platforms | Get a quick overview of configured VPN sessions |
For a complete check, inspect both IKEv2 and IPsec status. On platforms that support it, show crypto session can also help summarize the connection.
Distinguish an IKEv2 SA from an IPsec SA
| Association | What it secures or manages | Typical inspection command | What to check | If missing |
|---|---|---|---|---|
| IKEv2 SA | Negotiation and control between peers | `show crypto ikev2 sa` | Peer, state, and negotiation status | Check reachability, proposals, and authentication |
| IPsec SA | Protected data traffic | `show crypto ipsec sa` | Encapsulation, decapsulation, and counters | Check traffic selectors and IPsec policy |
| Relationship | IKEv2 establishes and manages IPsec SAs | Both commands | Whether both stages are present | Troubleshoot the stage that failed |
| State | Indicates whether an association is established | Relevant SA command | Established versus incomplete or absent | Review logs and configuration |
| Traffic counters | Show protected packets passing through IPsec | `show crypto ipsec sa` | Whether counters increase with traffic | Check routing, ACLs, and matching traffic |
| Peer details | Identify the remote endpoint | `show crypto ikev2 sa` | Expected peer address and identity | Verify peer settings and network path |
Compiled November 2026; check the provider's site for current details.
Troubleshoot a missing or failed association
If the expected peer does not appear, or the association is not established, check the basics before changing the configuration: Free VPN to Switch Country: What to Choose and How to Use It
- Confirm reachability. Verify that the peer address is correct and that the devices can reach each other over the intended network.
- Check UDP connectivity. IKEv2 normally uses UDP port 500 and may use UDP port 4500 for NAT traversal. Firewalls, access lists, or upstream devices can block this traffic.
- Compare IKEv2 proposals. The peers need compatible encryption, integrity, PRF, and Diffie-Hellman settings, as applicable to the platform and configuration.
- Verify authentication. Check that the pre-shared key or certificate configuration matches on both ends. For certificates, also review trust, identity, and validity.
- Review identity and profile settings. Confirm that the configured IKEv2 profile matches the peer’s identity and addresses.
- Check for NAT or routing issues. NAT, asymmetric routing, or an incorrect source interface can prevent successful negotiation.
- Inspect related logs. Use platform-appropriate IKEv2 logging or debugging carefully, especially on production devices, because verbose debugging can affect performance or expose sensitive operational details.
A useful troubleshooting sequence is to check the IKEv2 association first, then inspect the IPsec SA and counters. If the IKEv2 session is established but IPsec counters remain at zero, investigate traffic selectors, routing, access rules, and whether traffic is actually being sent through the tunnel.
Use the command safely and effectively
The command is read-only: it displays status rather than changing the VPN configuration. It is appropriate for routine verification, incident triage, and before-and-after checks during maintenance.
For clearer results:
- Match each entry to the intended peer and VPN.
- Record the device, software version, time, and relevant output when documenting an issue.
- Compare both ends of the tunnel if you have access to them.
- Avoid sharing unredacted output publicly. Addresses, identities, and other operational details may be sensitive.
Recommendation
Use show crypto ikev2 sa as your first check for IKEv2 peer status. If the association is established but the VPN is not passing traffic, follow up with show crypto ipsec sa and verify its packet counters, selectors, and routing before changing the configuration. Why Won’t My VPN Connect? Common Causes and Fixes
