Pcornel
Browse topics
Options
Recent
Favorites
Security · Technical reference

IKEv2 · IPsec

Direct answer

IKEv2 is the modern IPsec key exchange: fewer messages, built-in NAT traversal, dead peer detection, EAP for remote access and MOBIKE for roaming clients. Prefer it over IKEv1.

When to use this

Use this when using IKEv2 for site-to-site or remote access.

First 30 seconds

1. IKEv2: IKE_SA_INIT + IKE_AUTH creates IKE SA and first child SA.

2. Built-in NAT-T, DPD, MOBIKE.

3. Supports EAP for users.

4. Fewer interop issues.

5. Use for all new tunnels.

Operational verification

IKE_SA_INIT → IKE_AUTH → CHILD_SA

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Network security
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.

PlatformNetwork security
Scope / prerequisiteUse this when using IKEv2 for site-to-site or remote access.
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.

1 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 Common mistakes Narrow the fault
  • Mismatched identities (IP vs FQDN).
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
Key points
  • IKEv2 uses fewer messages than IKEv1.
  • It has built-in NAT-T and dead peer detection.
  • EAP supports remote-access users.
Key checks
  • show crypto ikev2 sa detailed — IKEv2 detail
  • swanctl --list-sas — strongSwan
  • IKEv2 profile/proposal — config
ReferenceWhy it matters1 section · depth on demand

IKEv2 advantages

  • 4 messages to establish the first SA instead of 6–9.
  • Built-in NAT traversal, DPD (liveness) and MOBIKE (address changes for mobile clients).
  • EAP for remote-access user authentication.
  • Asymmetric authentication (certificate on one side, PSK or EAP on the other).
  • Better resistance to DoS (cookies).
ReferenceImportant terms & boundaries3 sections · depth on demand

In depth

IKEv2 (RFC 7296) is the current version of the IPsec key exchange. It is simpler, faster and more robust than IKEv1: four messages establish the IKE SA and the first child SA, NAT traversal and dead peer detection are built in, and EAP allows user authentication for remote access.

IKEv1IKEv2
Initial exchange6–9 messages (main + quick mode)4 messages
NAT traversalExtensionBuilt-in
Liveness checkDPD extensionBuilt-in
Remote access authXAUTH (non-standard)EAP
Asymmetric authNoYes (each side may use different methods)
ReliabilityWeakerRetransmissions and sequence numbers

Use IKEv2 for all new tunnels; keep IKEv1 only for peers that cannot be upgraded.

IKEv2 exchange

ExchangeMessagesPurpose
IKE_SA_INIT2Algorithms, DH, nonces
IKE_AUTH2Identities, authentication, first child SA
CREATE_CHILD_SA2More child SAs, rekeying
INFORMATIONAL2DPD, delete, errors

Four messages bring up a tunnel versus 6+3 in IKEv1.

Cisco IOS XE example

crypto ikev2 proposal P1
 encryption aes-gcm-256
 prf sha384
 group 20
crypto ikev2 profile SITE-B
 match identity remote address 198.51.100.2 255.255.255.255
 authentication remote pre-share
 authentication local pre-share
 keyring local KR

Documented example, not captured output. Check with show crypto ikev2 sa detail.

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

Authoritative/upstream documentation reviewed for bounded claims in IPsec → IKEv2. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%
Confirmation

Confirm action

Continue?