Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Route-based VPN

Direct answer

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

When to use this

Use it when replacing crypto-map VPNs with routed tunnels, or when traffic is not entering the tunnel.

First 30 seconds

1. Route-based VPN sends traffic into a tunnel interface by routing.

2. Selectors are any/any.

3. Dynamic routing over the tunnel.

4. Easier than crypto maps.

5. Use VTI or DMVPN.

Operational verification

route → tunnel interface → IPsec protection → peer

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 · IOS/IOS XE · Cisco IOS XE
Key commandshow crypto ikev2 sa
Scope / prerequisiteUse it when replacing crypto-map VPNs with routed tunnels, or when traffic is not entering the tunnel.
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 Checks for a route-based VPN Verify boundary
show crypto ikev2 sa
show crypto ipsec sa interface Tunnel0
show ip route 10.20.0.0
show interfaces Tunnel0 | include line protocol

Route to the remote subnet must point at the tunnel interface; IPsec counters should increase in both directions.

Step 2 Common mistakes Narrow the fault
  • Running routing protocols without filtering over the tunnel.
  • Tunnel destination learned via the tunnel.
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 route-based VPN sends traffic into the tunnel based on the routing table.
  • It uses VTIs instead of policy-based crypto maps.
  • Easier to scale and supports dynamic routing over the tunnel.
Key checks
  • show ip route <remote-lan> — via Tunnel
  • show crypto ipsec sa — one SA pair (any/any)
ReferenceWhy it matters1 section · depth on demand

Route-based vs policy-based

Route-based (VTI)Policy-based (crypto map)
Traffic selectionRouting tableACL (interesting traffic)
Dynamic routingYesNo (without GRE)
Adding subnetsAdd a routeChange ACLs on both sides
TroubleshootingInterface counters, routingProxy-ID/ACL mismatches

Route-based VPNs are the modern default on routers and firewalls; interoperate with policy-based peers carefully (traffic selectors must match).

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

Route-based VPN: routing decides what is encrypted

In a route-based VPN, the tunnel is an interface and routes decide what goes through it. Cisco's IOS XE VTI guide states that a VTI is routable: traffic is encrypted when forwarded out the VTI, and static or dynamic routing directs traffic into the tunnel. The guide also covers BGP over a static VTI, with neighbours peering on the tunnel addresses.

Policy-based versus route-based

Policy-based (crypto map)Route-based (VTI)
What is encryptedTraffic matching a crypto ACLTraffic routed out the tunnel interface
ConfigurationACL per traffic pair; changes on both peersRoutes; add a prefix by advertising it
Dynamic routingAwkwardNatural: OSPF, EIGRP or BGP over the tunnel
FailoverPeer lists in the crypto mapRouting chooses another tunnel
FeaturesApplied on the physical interfaceQoS, NAT, firewall and NetFlow on the VTI (per the guide)
R1(config)# router bgp 64500
R1(config-router)# neighbor 172.31.100.2 remote-as 64501
R1(config-router)# neighbor 172.31.200.2 remote-as 64501
R1(config-router)# address-family ipv4 unicast
R1(config-router-af)# network 10.1.0.0 mask 255.255.0.0
R1(config-router-af)# neighbor 172.31.100.2 activate
R1(config-router-af)# neighbor 172.31.200.2 activate
R1(config-router-af)# neighbor 172.31.200.2 route-map BACKUP-IN in
R1# show ip route 10.2.0.0
Routing entry for 10.2.0.0/16
  Known via "bgp 64500", distance 20, metric 0
  * 172.31.100.2, from 172.31.100.2, via Tunnel100

Two VTIs over two Internet links, with BGP preferring Tunnel100. If it fails, BGP converges onto Tunnel200.

Traffic selectors

With a static VTI, the guide gives the default selector as "IP any any": one SA pair carries everything routed into the tunnel. Third-party peers that expect narrow selectors (policy-based firewalls) need matching configuration on their side, such as a route-based or "any/any" tunnel.

Design notes

PointRecommendation
Routing protocolBGP for many prefixes or multiple tunnels; OSPF or EIGRP for small meshes
Failure detectionBFD, or IKE dead peer detection, so routing notices a dead tunnel
Avoid recursionThe tunnel destination must be reached over the underlay, never via the tunnel
SummariesAdvertise site summaries rather than every subnet

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

Route-based and policy-based VPNs differ in how they decide what to encrypt. A route-based VPN encrypts whatever the routing table sends into the tunnel; a policy-based VPN encrypts traffic that matches a list of source and destination networks. Route-based designs are more flexible and are what cloud providers expect, while policy-based tunnels remain mainly for compatibility with older equipment.

Route-based VPN sends traffic into a tunnel interface according to the routing table (static or dynamic routing over the VTI), whereas policy-based VPN uses crypto ACLs/proxy-IDs to define what is encrypted.

Route-basedPolicy-based
What is encryptedAnything routed to the tunnelTraffic matching ACL
Dynamic routingYes (OSPF/BGP over tunnel)No
FailoverRouting metricsComplex
InteropMost firewalls/cloud VPNsLegacy peers

Cloud VPN gateways (AWS, Azure) are route-based and expect BGP or static routes over the tunnel.

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