Networking · Virtualization & Overlays › IPsec
IKEv2
Cheat sheet · https://pcornel.dk/topic.php?topic=1339
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.
Remember
- 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.
First checks
show crypto ikev2 sa— READY stateshow crypto ikev2 profile— profilesshow crypto ikev2 proposal— proposals
Commands
show crypto ikev2 sadebug crypto ikev2show crypto ikev2 sa detailed
Verify in this order
IKE_SA_INIT → IKE_AUTH → child SA
Where it usually breaks
underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1339