Use it when building an IPsec tunnel as a routed interface that can run routing protocols.
Virtual Tunnel Interface
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.
1. A VTI is a tunnel interface with IPsec protection (tunnel mode ipsec ipv4).
2. Supports routing protocols.
3. No GRE overhead.
4. Static or dynamic VTIs.
5. Line protocol reflects SA state.
tunnel interface → IPsec profile → SAs → routed traffic
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ip address 172.31.0.1 255.255.255.252Verification & 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 Verification Verify boundary
show crypto ikev2 sa (IKE SA READY), show crypto ipsec sa (encaps/decaps counters increasing on both sides) and show interfaces Tunnel0 (up/up). Tunnel up but no traffic: check routing to the tunnel and that both sides protect the same traffic.
Step 2 Common mistakes Narrow the fault
- Tunnel protection profile missing.
- Static route to remote LAN via the wrong interface.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A VTI (Virtual Tunnel Interface) is a routable interface protected by IPsec.
- Routing protocols can run over it, and traffic is sent into it by routes rather than crypto ACLs.
- Configure with
tunnel mode ipsec ipv4andtunnel protection ipsec profile.
show interfaces tunnel <n>— mode ipsec ipv4, protectionshow crypto ipsec sa interface tunnel <n>— SAs
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Configuring a virtual tunnel interface step by step
Cisco's IOS XE VTI guide shows the static VTI configuration: an IPsec profile referring to a transform set, and a tunnel interface with tunnel mode ipsec ipv4 and tunnel protection ipsec profile. IKE then negotiates the SAs, and the interface comes up when they exist.
R1(config)# crypto ikev2 proposal PROP
R1(config-ikev2-proposal)# encryption aes-gcm-256
R1(config-ikev2-proposal)# prf sha384
R1(config-ikev2-proposal)# group 20
R1(config)# crypto ikev2 policy POL
R1(config-ikev2-policy)# proposal PROP
R1(config)# crypto ikev2 keyring KR
R1(config-ikev2-keyring)# peer SITE-B
R1(config-ikev2-keyring-peer)# address 203.0.113.2
R1(config-ikev2-keyring-peer)# pre-shared-key <secret>
R1(config)# crypto ikev2 profile SITE-B
R1(config-ikev2-profile)# match identity remote address 203.0.113.2 255.255.255.255
R1(config-ikev2-profile)# authentication remote pre-share
R1(config-ikev2-profile)# authentication local pre-share
R1(config-ikev2-profile)# keyring local KR
R1(config)# crypto ipsec transform-set TS esp-gcm 256
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)# shutdown
R1(config-if)# ip address 172.31.100.1 255.255.255.252
R1(config-if)# ip mtu 1400
R1(config-if)# ip tcp adjust-mss 1360
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(config-if)# no shutdown
Order and rules from the guide
| Rule | Detail |
|---|---|
| Shut first | Shut the tunnel interface before configuring tunnel protection, then enable it |
shared keyword | Don't use it with tunnel mode ipsec ipv4 |
| Transform set mode | Tunnel mode only |
| IKE SA | Bound to the VTI |
| Fragmentation | Not supported over the tunnel |
The pieces
| Object | Holds |
|---|---|
| IKEv2 proposal and policy | Algorithms for the IKE SA |
| Keyring and IKEv2 profile | Peer identity and authentication |
| Transform set | ESP algorithms for the IPsec SAs |
| IPsec profile | Ties the transform set and IKEv2 profile to the tunnel |
| Tunnel interface | Addressing, source and destination, and the profile |
Sizing the MTU
ESP in tunnel mode with AES-GCM adds roughly 50–60 bytes to each packet. Because the guide states fragmentation isn't supported over the tunnel, set ip mtu and ip tcp adjust-mss on the tunnel so packets never exceed the path MTU after encryption.
Documented example, not captured output.
Quick reference
A Virtual Tunnel Interface (VTI) is a tunnel interface whose traffic is automatically protected by IPsec. Anything the routing table sends into the interface is encrypted, so VPNs can be managed like any other routed link — with dynamic routing, metrics and failover. VTIs have largely replaced the older crypto-map method on routers.
A Virtual Tunnel Interface applies IPsec protection to a routable tunnel interface instead of using crypto maps.
crypto ipsec profile VTI-PROF
set transform-set TS
set ikev2-profile IKEV2-PROF
interface Tunnel100
ip address 172.31.100.1 255.255.255.252
tunnel source GigabitEthernet0/0/0
tunnel destination 203.0.113.20
tunnel mode ipsec ipv4
tunnel protection ipsec profile VTI-PROF
show crypto session
Compared with GRE over IPsec, native VTI saves the 4-byte GRE header but carries only IP unicast (and multicast for routing protocols on IOS XE).
ReferenceConfiguration & state1 section · depth on demand
Configuration example
crypto ikev2 proposal PROP
encryption aes-gcm-256
prf sha384
group 20
crypto ikev2 policy POL
proposal PROP
crypto ikev2 keyring KR
peer SITE-B
address 198.51.100.2
pre-shared-key <key>
crypto ikev2 profile PROF
match identity remote address 198.51.100.2 255.255.255.255
authentication remote pre-share
authentication local pre-share
keyring local KR
crypto ipsec transform-set TS esp-gcm 256
mode tunnel
crypto ipsec profile IPSEC
set transform-set TS
set ikev2-profile PROF
interface Tunnel0
ip address 172.31.0.1 255.255.255.252
tunnel source GigabitEthernet0/0/0
tunnel destination 198.51.100.2
tunnel mode ipsec ipv4
tunnel protection ipsec profile IPSEC
Documented example, not captured output. Routing protocols run over Tunnel0 like any other interface.
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 → Virtual Tunnel Interface. 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%