VTI
Cheat sheet · https://pcornel.dk/topic.php?topic=702
Answer
A static IPsec Virtual Tunnel Interface is a route-based protected interface. In this Topic, scope is IOS XE static IPv4 VTI with IKEv2 and global inner/outer routing. Routes select inner traffic into the VTI; an IPsec profile protects it between outer peers. This is not a VXLAN VNI/VTEP or LISP EID/RLOC mapping.
Remember
Outer peer route, IKEv2, IPsec child SA, inner VTI route and paired encrypt/decrypt counters are separate. Do not substitute VNI/VTEP/RLOC mapping or tunnel-up state for protected delivery proof.
First checks
show interfaces tunnel <n>— tunnel mode ipsec ipv4, state, source and destination.show crypto session— tunnel state per peer.show crypto ikev2 sa/show crypto isakmp sa— IKE SA state.show crypto ipsec sa— SAs, traffic selectors and encaps/decaps counters.show crypto ikev2 proposal/show crypto ipsec transform-set— algorithms offered.debug crypto ikev2— negotiation errors (briefly).show ip route <remote-prefix>— routed into the tunnel.
Commands
interface tunnel <id>- Create or enter a tunnel interface.
show crypto ipsec sa- Display IPsec SAs with encrypt/decrypt counters.
show crypto session- Display VPN crypto sessions and their status.
tunnel source <source>- Set the source of a VTI.
tunnel destination <destination>- Set the tunnel destination of a VTI.
tunnel mode ipsec ipv4- Use a native IPsec VTI tunnel mode.
tunnel protection ipsec profile <profile>- Protect a VTI with an IPsec profile.
show crypto ikev2 sa
Verify in this order
outer route to the peer → IKEv2 SA → IPsec SA (any/any selectors) → tunnel interface up → routes send traffic into the tunnel → encrypt and decrypt counters rise
Where it usually breaks
underlay recursion/filter → IKE mismatch → child-SA/profile issue → inner route → one-way ESP/NAT-T or MTU → remote/return path
VTI · operational reference
| VTI layer | Evidence |
|---|---|
| Route selection | Prefix resolves through tunnel |
| Tunnel interface | Logical path present/up |
| IPsec SA | Protection relationship established |
| Crypto counters | Actual protected traffic traverses SA |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=702