Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

IKEv2

Direct answer

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.

When to use this

Use IKEv2 when an IPsec tunnel will not establish or rekey: the proposals, identities and authentication that both peers must agree on.

First 30 seconds

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.

Operational verification

IKE_SA_INIT → IKE_AUTH → child SA

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Scope / prerequisiteUse IKEv2 when an IPsec tunnel will not establish or rekey: the proposals, identities and authentication that both peer…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

4 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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
SymptomCommandLook forNext check
No IKE SAshow crypto ikev2 saStatus READYUDP 500/4500 reachability and peer address
Proposal rejecteddebug crypto ikev2 (maintenance window)NO_PROPOSAL_CHOSENEncryption, integrity/PRF and DH group match on both peers
Authentication failssameAUTHENTICATION_FAILEDPSK, identity type (address vs FQDN) or certificate trust
SA detailsshow crypto ikev2 sa detailedAlgorithms, lifetime, DPDRekey 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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • show crypto ikev2 sa — READY state
  • show crypto ikev2 profile — profiles
  • show 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.

ExchangeContent (RFC 7296)
IKE_SA_INITCryptographic algorithms for the IKE SA, nonces (Ni, Nr), Diffie-Hellman values (KEi, KEr)
IKE_AUTHIdentities (IDi, IDr), AUTH payloads, the first Child SA; encrypted and integrity-protected with keys from IKE_SA_INIT
CREATE_CHILD_SAAdditional Child SAs, rekeying of Child SAs or the IKE SA, optionally with a new DH exchange
INFORMATIONALDeleting 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

ObjectHolds
ProposalEncryption, integrity or PRF, DH group
PolicyWhich proposals apply (optionally per local address or VRF)
KeyringPre-shared keys per peer
ProfilePeer 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

StageTypical cause
No IKE_SA_INIT responseUDP 500 blocked, wrong peer address
NO_PROPOSAL_CHOSENNo common proposal
AUTHENTICATION_FAILEDKey or certificate mismatch, identity not matched by the profile
TS_UNACCEPTABLETraffic selectors don't match (common with policy-based peers)

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 4301

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%
Confirmation

Confirm action

Continue?