Verification
Cheat sheet · https://pcornel.dk/topic.php?topic=701
Answer
Verify IPsec with show crypto ikev2 sa (or show crypto isakmp sa), show crypto ipsec sa (encaps/decaps counters increasing on both sides) and show interfaces tunnel, then test with traffic that must use the tunnel.
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— IKEshow crypto ipsec sa— IPsecshow crypto session detail— summarydebug crypto ikev2 error— failures (lab)
Commands
show interfaces tunnel <id>- Inspect tunnel state and endpoints.
show crypto ikev2 sa- Display IKEv2 security associations.
show crypto ipsec sa- Display IPsec SAs with encrypt/decrypt counters.
show crypto session- Display VPN crypto sessions and their status.
show crypto
Verify in this order
IKE SA → IPsec SAs → routing → encaps/decaps
Where it usually breaks
underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path
Verification · operational reference
| State / evidence | Interpretation |
|---|---|
| Underlay | Peer reachable |
| IKE | Control/key state |
| IPsec SA | Protected data state |
| Counters | Traffic actually using SA |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=701