Use IKEv2 when an IPsec tunnel will not establish or rekey: the proposals, identities and authentication that both peers must agree on.
IKEv2
IKEv2 is the current IKE version: fewer messages, built-in NAT traversal and dead peer detection, EAP support, and on IOS FlexVPN configuration with proposals, policies, keyrings and profiles.
1. IKEv2 uses proposals, policies, keyrings and profiles.
2. Fewer messages than IKEv1.
3. Supports EAP and certificates.
4. Match identities and auth on both sides.
5. Use DPD.
IKE_SA_INIT → IKE_AUTH → child SA
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Layered verification and original-test closure Verify boundary
IKEv2 — Verify the expected peer identity and IKE SA, then match one protected flow to the correct Child SA and confirm encrypt/decrypt counters increment in both directions.
Step 2 Verification & troubleshooting Narrow the fault
| Symptom | Command | Look for | Next check |
|---|---|---|---|
| No IKE SA | show crypto ikev2 sa | Status READY | UDP 500/4500 reachability and peer address |
| Proposal rejected | debug crypto ikev2 (maintenance window) | NO_PROPOSAL_CHOSEN | Encryption, integrity/PRF and DH group match on both peers |
| Authentication fails | same | AUTHENTICATION_FAILED | PSK, identity type (address vs FQDN) or certificate trust |
| SA details | show crypto ikev2 sa detailed | Algorithms, lifetime, DPD | Rekey timers on both peers |
Step 3 Observation → implication → next check Narrow the fault
IKEv2 — If IKE fails, compare peer reachability, identity, authentication material, proposals and time. If IKE is up but traffic fails, inspect Child SA selectors, SPI/counters and routing/NAT boundaries.
Step 4 Common mistakes Narrow the fault
- IKEv2 proposals or policies not matching on both sides.
- Certificate authentication without a reachable CRL/OCSP.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- IKE SA and IPsec child SA are separate evidence boundaries
- Proxy identities/selectors must agree at both peers
- ESP commonly carries protected data; NAT traversal can encapsulate it in UDP 4500
- Encaps and decaps counters must be interpreted with generated interesting traffic and the return path.
show crypto ikev2 sa— READY stateshow crypto ikev2 profile— profilesshow crypto ikev2 proposal— proposals
ReferenceWhat it is1 section · depth on demand
What it is
IKEv2 (RFC 7296) negotiates and authenticates the keys for IPsec.
1. IKE_SA_INIT — proposals, Diffie-Hellman exchange and nonces create the IKE SA.
2. IKE_AUTH — the peers exchange identities, authenticate with a PSK, certificates or EAP, and create the first Child SA (the IPsec SA).
3. CREATE_CHILD_SA rekeys or adds SAs; INFORMATIONAL carries dead-peer detection and deletes.
IKEv2 uses UDP 500 and moves to UDP 4500 when NAT is detected (NAT-T). Compared with IKEv1 it needs fewer messages, has NAT-T, DPD and EAP built in, and allows different authentication methods on each side.
On IOS XE the building blocks are: proposal → policy → keyring → profile → IPsec profile.
ReferenceWhy it matters1 section · depth on demand
When to use it
Use IKEv2 for every new IPsec design (site-to-site VTI, FlexVPN, remote access). Read it when a tunnel will not establish, rekeys fail or peers disagree on algorithms or identities.
ReferenceHow it works1 section · depth on demand
Operational mechanics and ownership
IKEv2 — IKEv2 authenticates peers, negotiates cryptographic parameters and derives keys used to create IPsec Child SAs. IKE SA establishment and IPsec data-plane SA health are separate states. The IKE state machine owns peer authentication and negotiation; Child SAs own protected traffic selectors and counters. An established IKE SA does not show the expected data traffic matches an IPsec SA.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
IKEv2: four messages to a working tunnel
RFC 7296 defines IKEv2's exchanges. In the common case, four messages set up both the IKE SA and the first Child SA: one IKE_SA_INIT request and response, and one IKE_AUTH request and response.
| Exchange | Content (RFC 7296) |
|---|---|
| IKE_SA_INIT | Cryptographic algorithms for the IKE SA, nonces (Ni, Nr), Diffie-Hellman values (KEi, KEr) |
| IKE_AUTH | Identities (IDi, IDr), AUTH payloads, the first Child SA; encrypted and integrity-protected with keys from IKE_SA_INIT |
| CREATE_CHILD_SA | Additional Child SAs, rekeying of Child SAs or the IKE SA, optionally with a new DH exchange |
| INFORMATIONAL | Deleting SAs, error notifications, liveness checks |
RFC 7296 adds that IKE_SA_INIT must complete before IKE_AUTH, and that if the Child SA fails in IKE_AUTH, the IKE SA is still established.
R1(config)# crypto ikev2 proposal PROP
R1(config-ikev2-proposal)# encryption aes-gcm-256
R1(config-ikev2-proposal)# prf sha384
R1(config-ikev2-proposal)# group 20
R1(config)# crypto ikev2 policy POL
R1(config-ikev2-policy)# proposal PROP
R1(config)# crypto ikev2 profile SITE-B
R1(config-ikev2-profile)# match identity remote address 203.0.113.2 255.255.255.255
R1(config-ikev2-profile)# authentication remote pre-share
R1(config-ikev2-profile)# authentication local pre-share
R1(config-ikev2-profile)# keyring local KR
R1(config-ikev2-profile)# dpd 10 2 on-demand
R1# debug crypto ikev2
IKEv2:(SESSION ID = 1,SA ID = 1):Sending Packet [To 203.0.113.2:500/From 198.51.100.2:500/VRF i0:f0]
Initiator SPI : 4B0C9E7F2A11D3C5 - Responder SPI : 0000000000000000 Message id: 0
IKEv2 IKE_SA_INIT Exchange REQUEST
IKEv2:(SESSION ID = 1,SA ID = 1):Received Packet [From 203.0.113.2:500/To 198.51.100.2:500/VRF i0:f0]
IKEv2 IKE_SA_INIT Exchange RESPONSE
IKEv2 IKE_AUTH Exchange REQUEST
IKEv2 IKE_AUTH Exchange RESPONSE
R1# undebug all
Cisco IKEv2 configuration objects
| Object | Holds |
|---|---|
| Proposal | Encryption, integrity or PRF, DH group |
| Policy | Which proposals apply (optionally per local address or VRF) |
| Keyring | Pre-shared keys per peer |
| Profile | Peer matching, authentication methods, keyring or trustpoint, DPD |
Rekeying (RFC 7296)
An SA is rekeyed by creating a new SA and then deleting the old one. Rekeying the IKE SA uses CREATE_CHILD_SA with a new DH exchange, and resets the message counters.
Where it fails
| Stage | Typical cause |
|---|---|
| No IKE_SA_INIT response | UDP 500 blocked, wrong peer address |
| NO_PROPOSAL_CHOSEN | No common proposal |
| AUTHENTICATION_FAILED | Key or certificate mismatch, identity not matched by the profile |
| TS_UNACCEPTABLE | Traffic selectors don't match (common with policy-based peers) |
Documented example, not captured output.
Quick reference
IKEv2 (RFC 7296) negotiates IPsec security associations and authenticates peers in fewer messages than IKEv1: IKE_SA_INIT (algorithms and Diffie-Hellman) and IKE_AUTH (identities, authentication, first Child SA).
crypto ikev2 proposal PROP
encryption aes-gcm-256
prf sha384
group 20
crypto ikev2 profile PROF
match identity remote address 198.51.100.2 255.255.255.255
authentication remote pre-share
authentication local pre-share
keyring local KR
show crypto ikev2 sa detailed
Documented example, not captured output.
IKEv2 has built-in NAT traversal, dead peer detection and EAP for remote access.
ReferenceConfiguration & state1 section · depth on demand
Configuration example (Cisco IOS XE)
crypto ikev2 proposal PROP-1
encryption aes-cbc-256
integrity sha256
group 19
crypto ikev2 policy POL-1
proposal PROP-1
crypto ikev2 keyring KR
peer PEER-B
address 198.51.100.2
pre-shared-key <secret>
crypto ikev2 profile PROF-B
match identity remote address 198.51.100.2 255.255.255.255
authentication local pre-share
authentication remote pre-share
keyring local KR
dpd 10 3 on-demand
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → IPsec → IKEv2. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301.html · confidence 94%