Security · IPsec
IKEv2
Cheat sheet · https://pcornel.dk/topic.php?topic=4657
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.
Remember
- IKEv2 uses fewer messages than IKEv1.
- It has built-in NAT-T and dead peer detection.
- EAP supports remote-access users.
First checks
show crypto ikev2 sa detailed— IKEv2 detailswanctl --list-sas— strongSwan- IKEv2 profile/proposal — config
Commands
show crypto ikev2 sa detail
Verify in this order
IKE_SA_INIT → IKE_AUTH → CHILD_SA
Where it usually breaks
First mismatch in endpoint/identity → path/reachability → policy selection → enforcement/session → protected flow → telemetry/detection; preserve identity/policy/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4657