Networking · Virtualization & Overlays › IPsec
IPsec Profile
Cheat sheet · https://pcornel.dk/topic.php?topic=699
Answer
An IPsec profile (crypto ipsec profile <name>) groups the transform set and IKEv2 profile and is applied to a tunnel interface with tunnel protection ipsec profile <name>.
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 ipsec profile— profile contentsshow running-config | section crypto ipsec profile— config
Commands
crypto ipsec transform-set <name> esp-aes esp-sha-hmac- Define an IPsec transform set; prefer AES-GCM or AES with SHA-256 for new designs.
crypto ipsec profile <name>- Create an IPsec profile for route-based VPNs (VTI or GRE over IPsec).
set transform-set <name>- Reference a transform set in an IPsec profile.
Verify in this order
transform set + IKEv2 profile → IPsec profile → tunnel protection
Where it usually breaks
underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path
IPsec Profile · operational reference
| State / evidence | Interpretation |
|---|---|
| Profile | Reusable protection policy |
| Tunnel binding | Where policy is applied |
| Negotiated SA | Runtime agreement |
| Packet counters | Actual encrypted traffic |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=699