IPsec virtual tunnel interfaces (VTI): route-based VPNs on Cisco IOS
In short: A virtual tunnel interface turns an IPsec VPN into a normal routed interface. Anything routed into the tunnel is encrypted, so you can run OSPF, EIGRP or BGP across it and apply QoS, ACLs and NAT per tunnel. This route-based approach is simpler than crypto maps and is what cloud providers expect.
Why move away from crypto maps
Classic site-to-site VPNs on Cisco routers used crypto maps: an ACL defines "interesting traffic", and anything matching it is encrypted to a peer. This policy-based approach works, but every new subnet means editing ACLs on both sides, routing protocols cannot run over it easily, and it is hard to see what the tunnel is doing. A virtual tunnel interface (VTI) is route-based: the tunnel is an interface, and whatever the routing table sends into it is encrypted.
Static VTI with IKEv2
crypto ikev2 proposal PROP-1
encryption aes-gcm-256
prf sha384
group 20
crypto ikev2 policy POL-1
proposal PROP-1
crypto ikev2 keyring KR-SITE-B
peer SITE-B
address 203.0.113.20
pre-shared-key Example-Lab-Key-Only
crypto ikev2 profile IKEV2-SITE-B
match identity remote address 203.0.113.20 255.255.255.255
authentication remote pre-share
authentication local pre-share
keyring local KR-SITE-B
crypto ipsec transform-set TS-GCM esp-gcm 256
mode tunnel
crypto ipsec profile IPSEC-SITE-B
set transform-set TS-GCM
set ikev2-profile IKEV2-SITE-B
!
interface Tunnel10
ip address 169.254.10.1 255.255.255.252
ip mtu 1400
ip tcp adjust-mss 1360
tunnel source GigabitEthernet0/0/0
tunnel destination 203.0.113.20
tunnel mode ipsec ipv4
tunnel protection ipsec profile IPSEC-SITE-B
tunnel mode ipsec ipv4 is the key line. Unlike GRE over IPsec, there is no GRE header, so overhead is lower. The other site mirrors this configuration.
Routing over the tunnel
router ospf 1
network 169.254.10.0 0.0.0.3 area 0
! or simply a static route
ip route 10.20.0.0 255.255.0.0 Tunnel10
Because the tunnel is an interface, routing protocols form neighbours across it normally. Two VTIs to two different providers, with routing metrics or BGP choosing between them, give a clean redundant VPN design.
Dynamic VTI for many peers
A head-end with many remote sites or remote-access clients can use a dynamic VTI: a virtual-template interface of type tunnel, referenced from the IKEv2 profile. Each new peer clones a virtual-access interface from the template, so you configure one template instead of one tunnel per site.
Cloud VPNs
AWS, Azure and Google Cloud VPN gateways are route-based. They give you two tunnel endpoints with link addresses from 169.254.0.0/16 and expect BGP over each tunnel. A pair of VTIs with BGP is exactly the right fit, and the providers' downloadable configuration files for Cisco use this design.
Verification
show interface Tunnel10: line protocol up means IPsec is up.show crypto ikev2 saandshow crypto ipsec sa interface Tunnel10: encrypted and decrypted packet counters should both rise.- If encrypts rise but decrypts stay at zero, the other side is not sending or a firewall is dropping ESP or UDP 4500.
Real-world example: a growing partner VPN
A company's VPN to a partner used a crypto map with an ACL of 40 lines. Every time either side added a subnet, both teams had to change their ACLs on the same night, and mismatches caused outages. Replacing it with a VTI and BGP meant new subnets were simply advertised, and the ACL editing stopped.
Practice
What makes a VTI "route-based"?
Which tunnel mode command creates an IPv4 IPsec VTI?
tunnel mode ipsec ipv4.Encrypt counters rise on a tunnel but decrypt counters stay at zero. What does that suggest?
Key takeaways
- A VTI is a routable IPsec tunnel interface.
- Route-based VPNs avoid crypto ACLs and support routing protocols.
- Dynamic VTIs clone tunnels from a template for many peers.
- Cloud VPN gateways expect route-based tunnels, usually with BGP.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.