Use it for route-based site-to-site VPNs where routing decides what is encrypted, instead of crypto ACLs.
VTI
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.
1. show interfaces tunnel <n> — tunnel mode ipsec ipv4, up/up?
2. Down → IKE: show crypto ikev2 sa; proposals, keys and outer reachability.
3. Up → show ip route <remote-prefix> points into the tunnel?
4. show crypto ipsec sa — encaps and decaps rising?
5. Routing protocol over the VTI, or static routes on both ends.
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
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
interface tunnel <id>Primary Commands
Configuration and operational commands for this Topic.
interface tunnel <id>ReferenceCreate or enter a tunnel interface.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedtunnel source <source>ReferenceSet the source of a VTI.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedtunnel destination <destination>ReferenceSet the tunnel destination of a VTI.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedtunnel mode ipsec ipv4ReferenceUse a native IPsec VTI tunnel mode.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedtunnel protection ipsec profile <profile>ReferenceProtect a VTI with an IPsec profile.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show crypto sessionShowDisplay VPN crypto sessions and their status.
Use when: Use as the prior manifest-approved bounded observation/validation surface for this exact Topic.
Quick note: Restores exact/ ownership only; this authored guidance is not observed production Evidence.
Cisco IOS / IOS XE · control planeshow crypto ipsec saShowDisplay IPsec SAs with encrypt/decrypt counters.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 VTI: bounded route test and safe restoration Verify boundary
Illustrative isolated pair: outer peers 192.0.2.1 and 198.51.100.1, numbered VTI addresses 10.255.0.1/30 and 10.255.0.2/30, protected LANs 10.10.0.0/24 and 10.20.0.0/24. Both underlay peers remain reachable outside the tunnel, and reviewed IKEv2/IPsec profiles and return routes already exist. This is a verification topology, not a complete crypto configuration.
Send one bounded host-to-host application flow. Confirm inner routes select the VTI, inspect both peers’ current SA identities and paired encrypt/decrypt deltas, then verify the client response. Tunnel up or IKE established alone is insufficient.
In this isolated lab, withdraw only the test inner route with no alternate/default path able to carry that destination. Observe that the test no longer enters the VTI even if SAs remain valid. Restore the exact route and verify traffic/counters both ways. Save prior routes/profile/interface settings and retain independent management access. No key material, SA capture or executed test is claimed.
Step 2 VTI protected-flow verification Verify boundary
Follow outer peer reachability, negotiated IKE/IPsec, selected inner route, current paired SA counter deltas and original service/return traffic. Inspect actual peer/interface associations. Software state may require additional platform forwarding readback; a configured protected prefix alone is not delivery evidence.
Step 3 Verification and output interpretation Verify boundary
Check interface state and tunnel parameters, then verify show crypto session and show crypto ipsec sa for active SAs and increasing protect/unprotect counters. Inspect the routing table to show target prefixes resolve through the VTI, and verify the outer peer route resolves through the physical/underlay path instead. If the SA is healthy but no encrypt counters rise, confirm routes actually select the VTI. If encrypt counters rise without decrypt counters, investigate the remote peer, return routing and policy. Large-packet tests or TCP MSS observation may be needed to show MTU behavior beyond simple reachability.
Step 4 VTI: IKE, IPsec, route and one-way traffic branches Narrow the fault
No IKEv2 SA: inspect outer route/source, identity/authentication, proposal and transport/filtering on both peers, including NAT traversal where used. IKE works but expected IPsec SA is absent: inspect profile linkage and negotiated child-SA policy rather than a VNI mapping.
SA exists but encrypt does not move: inspect the selected inner route, tunnel binding and whether the actual flow enters the VTI. Encrypt rises with no remote decrypt: investigate outer path, wrong SA/peer, ESP or NAT-T handling and remote errors. Decrypt rises but application fails: inspect inner delivery, filtering, return route and endpoint service. Also inspect MTU and replay/error counters in their release-specific context.
Do not clear all SAs or disable protection as a diagnostic read. Preserve the exact peer, flow and counter interval before any scoped negotiation/reset intervention.
Step 5 VTI verification sequence Narrow the fault
Identify platform, VTI, outer peer and exact inner flow. Read underlay route, IKEv2/IPsec state, tunnel/profile binding and inner route. Correlate before/after SA counters at both endpoints, delivery to the remote service and return traffic. Use the isolated route-withdrawal procedure for a negative test, not a global crypto clear.
Step 6 VTI first failed boundary Narrow the fault
Branch underlay reachability → IKEv2 identity/authentication → child SA/profile → inner route → encryption/outer transport → remote decryption/delivery → return route. VXLAN VNI and LISP registration are not prerequisites of the static VTI model. Stop at the first observed mismatch and restore only a reviewed scoped change.
Subtopics
Go one level deeper into this subject.
A Virtual Tunnel Interface (VTI, tunnel mode ipsec ipv4) is an IPsec tunnel interface without GRE; it supports routing protocols and per-tunnel features but carries only IP unicast and multicast of one address family.
Subtopic Route-based VPNA route-based VPN sends traffic into the tunnel by routing to a tunnel interface (static or dynamic routing), instead of matching a crypto ACL as policy-based VPNs do.
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.
ReferenceWhy it matters1 section · depth on demand
When to use VTI guidance
Use this Topic for route-based IPsec interface, SA, routing or protected-flow problems. Separate GRE over IPsec and VXLAN/LISP topics when their encapsulation/control model is actually in use. A shared Tunnel interface name does not make those designs equivalent.
ReferenceHow it works1 section · depth on demand
VTI: route-based IPsec observation chain
Scope: IOS XE static IPv4 VTI, IKEv2, global routing; dynamic VTI, VRF-aware and IPv6 models require separate release-specific scope. interface tunnel <id> enters configuration mode, not a read-only observation.
Read tunnel/interface and profile configuration, show crypto ikev2 sa, show crypto ipsec sa, the outer peer route and the inner destination route. Check that outer peer reachability remains on the underlay rather than recursively through its own VTI. A tunnel interface, IKE SA and IPsec child SA each show a different layer.
Use the SA associated with the actual peer/interface and time window. Correlate a bounded inner flow with local encrypt/encaps and remote decrypt/decaps deltas, then the reverse direction. A nonzero historical counter is not traffic attribution.
Reference: Cisco IOS XE IPsec VTI.
ReferenceImportant terms & boundaries6 sections · depth on demand
VTI operational boundaries
In depth
VTI: IPsec as a routable interface
Cisco's IOS XE VTI guide describes a virtual tunnel interface as a routable interface. Traffic is encrypted when it is forwarded out the VTI, and traffic arriving on the VTI is decrypted and routed. Routing, static or dynamic, decides what goes into the tunnel, so no crypto ACL is needed to select interesting traffic.
Static and dynamic VTI (from the guide)
| Type | Use | Detail |
|---|---|---|
| Static VTI (SVTI) | Always-on site-to-site | One IPsec SA by default with selectors "IP any any"; multiple SAs with ACL selectors from 16.12.1 |
| Dynamic VTI (DVTI) | Remote access and hub-and-spoke | A virtual-access interface cloned from a virtual template per session; replaces dynamic crypto maps |
R1(config)# crypto ipsec transform-set TS esp-aes 256 esp-sha256-hmac
R1(cfg-crypto-trans)# mode tunnel
R1(config)# crypto ipsec profile VTI-PROF
R1(ipsec-profile)# set transform-set TS
R1(ipsec-profile)# set ikev2-profile SITE-B
R1(config)# interface Tunnel100
R1(config-if)# ip address 172.31.100.1 255.255.255.252
R1(config-if)# tunnel source GigabitEthernet0/0/0
R1(config-if)# tunnel mode ipsec ipv4
R1(config-if)# tunnel destination 203.0.113.2
R1(config-if)# tunnel protection ipsec profile VTI-PROF
R1# show interfaces Tunnel100 | include protocol|Tunnel protocol|protection
Tunnel100 is up, line protocol is up
Tunnel protocol/transport IPSEC/IP
Tunnel protection via IPSec (profile "VTI-PROF")
Documented points
| Point | Detail |
|---|---|
| Features on the VTI | QoS, firewall, NAT and NetFlow apply to the clear-text traffic on the VTI; features for encrypted traffic go on the physical interface |
| Multicast | Supported, so routing protocols run over the VTI |
| Transform set | Must use tunnel mode |
| Configuration order | Shut the tunnel interface before adding tunnel protection, then enable it |
| Fragmentation | Not supported over the IPsec tunnel; size the MTU and MSS accordingly |
| IPv4 over IPv6 and the reverse | tunnel mode ipsec ipv4 v6-overlay or ipv6 v4-overlay, with set mixed mode in the profile |
| Dual stack over one SA | IKEv2 only, from IOS XE 17.9 |
VTI versus GRE over IPsec
VTI (tunnel mode ipsec ipv4) | GRE over IPsec | |
|---|---|---|
| Overhead | IPsec only | GRE header plus IPsec |
| Payload | IPv4 (or IPv6 with v6 mode) | Anything GRE carries |
| Multipoint (DMVPN) | No | Yes, with mGRE |
For a point-to-point site-to-site tunnel, a VTI is the simpler choice.
Documented example, not captured output.
Quick reference
A VTI (Virtual Tunnel Interface) is a routable tunnel interface protected by IPsec. Traffic is sent into it by routing, routing protocols can run over it, and features like QoS and ACLs apply to the interface — simpler than crypto maps.
interface Tunnel10
ip address 172.16.10.1 255.255.255.252
tunnel source Gi0/0
tunnel mode ipsec ipv4
tunnel destination 198.51.100.2
tunnel protection ipsec profile VTI-PROF
ip route 10.60.0.0 255.255.0.0 Tunnel10
Documented example, not captured output.
Static VTIs (SVTI) connect two peers; dynamic VTIs (DVTI) on a hub create virtual-access interfaces for many spokes.
VTI mechanics: inner routing and outer protection
Inner routing chooses the static VTI; the linked IPsec profile and negotiated SA protect that traffic over an independently reachable underlay peer. Do not infer protected forwarding from the existence of a Tunnel interface or from endpoint/segment identifiers belonging to a different overlay technology.
State model and protocol mechanics
A Virtual Tunnel Interface integrates route-based forwarding with IPsec protection. Instead of defining interesting traffic primarily through a crypto ACL, the routing table selects the tunnel interface and the IPsec profile protects traffic that traverses that interface. Static VTIs commonly represent a point-to-point protected path; dynamic variants may support hub/spoke scenarios depending on platform. The control model is therefore route → tunnel interface → IPsec SA → underlay. Tunnel state and crypto state remain separate: an interface can exist while SAs are negotiating, and an SA can be valid while the routing table does not send useful prefixes into the VTI. The outer peer address still relies on ordinary underlay reachability.
Limits and common misconceptions
A VTI does not eliminate the distinction between routing and cryptography. The RIB chooses what enters the tunnel, while IPsec determines whether that traffic can be protected and exchanged with the peer. Interface up/up alone does not show an SA exists; SA state alone does not show useful routes point into the interface. Because route-based VPNs can carry many prefixes, an incorrect route can broaden traffic exposure even if the crypto profile is correct. Underlay endpoint reachability must remain independent of the VTI. Treat tunnel interface, RIB selection, IPsec SA, counters and remote routing as separate proofs.
ReferenceConfiguration & state2 sections · depth on demand
VTI lifecycle and controlled changes
Record exact interface, routing contexts, peer identities, profile linkage and management recovery before changing VTI routing/protection. Establish underlay, negotiation and protected routes in a reviewed order; collect state before any reset. Restoring configuration still requires negotiation and route convergence.
Design and configuration model
Create the tunnel interface, define source/destination as appropriate, configure tunnel mode for IPsec VTI behavior and attach the intended IPsec profile. Assign tunnel addressing if the routing design requires numbered interfaces, then install static or dynamic routes that deliberately point through the VTI. Keep the remote peer/outer endpoint route outside the tunnel to avoid recursive resolution. Route-based policy makes broad protected-prefix designs easier, but route leaks can accidentally send unintended traffic into the VPN, so the RIB remains a security-relevant control point. Plan tunnel MTU/MSS for IPsec overhead and make routing-protocol timers/adjacencies appropriate for the WAN transport.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → VTI. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%Official Cisco vendor documentation reviewed for bounded reference claims: VTI routed interface and IPsec SA relationship. This is documentation-based technical verification, not lab or production-runtime proof. Deployment-specific applicability and runtime outcome remain separate evidence.
Basis: https://www.cisco.com/c/en/us/td/docs/routers/ios-xe/security-vpn/security-vpn/m_sec-ipsec-virt-tunnl-0.html · confidence 94%Quick lookup tables
VTI · operational reference
Compact state and interpretation boundaries for fast lookup.
| 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 |
Deep reference
Healthy vs suspicious evidence
VTI output interpretation
Interpret peer identity, SA direction/SPIs, protection parameters and current encrypt/decrypt/error deltas with the same flow and time. Counters surviving a previous session do not show this flow is protected. Preserve sanitized state and never include keys or sensitive payloads in reference output.