Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Virtual Tunnel Interface

Direct answer

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.

When to use this

Use it when building an IPsec tunnel as a routed interface that can run routing protocols.

First 30 seconds

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.

Operational verification

tunnel interface → IPsec profile → SAs → routed traffic

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE · Cisco IOS XE
Key commandip address 172.31.0.1 255.255.255.252
Scope / prerequisiteUse it when building an IPsec tunnel as a routed interface that can run routing protocols.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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 ipv4 and tunnel protection ipsec profile.
Key checks
  • show interfaces tunnel <n> — mode ipsec ipv4, protection
  • show 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

RuleDetail
Shut firstShut the tunnel interface before configuring tunnel protection, then enable it
shared keywordDon't use it with tunnel mode ipsec ipv4
Transform set modeTunnel mode only
IKE SABound to the VTI
FragmentationNot supported over the tunnel

The pieces

ObjectHolds
IKEv2 proposal and policyAlgorithms for the IKE SA
Keyring and IKEv2 profilePeer identity and authentication
Transform setESP algorithms for the IPsec SAs
IPsec profileTies the transform set and IKEv2 profile to the tunnel
Tunnel interfaceAddressing, 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

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%
Confirmation

Confirm action

Continue?