Networking · Virtualization & Overlays › IPsec
IKE
Cheat sheet · https://pcornel.dk/topic.php?topic=1338
Answer
Internet Key Exchange (IKE) authenticates IPsec peers and negotiates the keys and parameters (SAs) for the tunnel, using UDP 500 and UDP 4500 with NAT traversal.
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 isakmp sa— IKEv1 SAsshow crypto ikev2 sa— IKEv2 SAsdebug crypto ikev2— negotiation (lab)
Commands
show crypto isakmp sa- Lists the IKEv1 phase 1 security associations with their peer addresses and state.
Verify in this order
IKE SA → authentication → child/IPsec SAs
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=1338