Use this when using IKEv2 for site-to-site or remote access.
IKEv2 · IPsec
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.
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.
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 Common mistakes Narrow the fault
- Mismatched identities (IP vs FQDN).
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.
- IKEv2 uses fewer messages than IKEv1.
- It has built-in NAT-T and dead peer detection.
- EAP supports remote-access users.
show crypto ikev2 sa detailed— IKEv2 detailswanctl --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.
| IKEv1 | IKEv2 | |
|---|---|---|
| Initial exchange | 6–9 messages (main + quick mode) | 4 messages |
| NAT traversal | Extension | Built-in |
| Liveness check | DPD extension | Built-in |
| Remote access auth | XAUTH (non-standard) | EAP |
| Asymmetric auth | No | Yes (each side may use different methods) |
| Reliability | Weaker | Retransmissions and sequence numbers |
Use IKEv2 for all new tunnels; keep IKEv1 only for peers that cannot be upgraded.
IKEv2 exchange
| Exchange | Messages | Purpose |
|---|---|---|
| IKE_SA_INIT | 2 | Algorithms, DH, nonces |
| IKE_AUTH | 2 | Identities, authentication, first child SA |
| CREATE_CHILD_SA | 2 | More child SAs, rekeying |
| INFORMATIONAL | 2 | DPD, 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.
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 IPsec → IKEv2. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%