Use it when replacing crypto-map VPNs with routed tunnels, or when traffic is not entering the tunnel.
Route-based VPN
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.
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.
route → tunnel interface → IPsec protection → peer
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show crypto ikev2 saVerification & 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 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 · 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 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.
show ip route <remote-lan>— via Tunnelshow 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 selection | Routing table | ACL (interesting traffic) |
| Dynamic routing | Yes | No (without GRE) |
| Adding subnets | Add a route | Change ACLs on both sides |
| Troubleshooting | Interface counters, routing | Proxy-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 encrypted | Traffic matching a crypto ACL | Traffic routed out the tunnel interface |
| Configuration | ACL per traffic pair; changes on both peers | Routes; add a prefix by advertising it |
| Dynamic routing | Awkward | Natural: OSPF, EIGRP or BGP over the tunnel |
| Failover | Peer lists in the crypto map | Routing chooses another tunnel |
| Features | Applied on the physical interface | QoS, 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
| Point | Recommendation |
|---|---|
| Routing protocol | BGP for many prefixes or multiple tunnels; OSPF or EIGRP for small meshes |
| Failure detection | BFD, or IKE dead peer detection, so routing notices a dead tunnel |
| Avoid recursion | The tunnel destination must be reached over the underlay, never via the tunnel |
| Summaries | Advertise site summaries rather than every subnet |
Documented example, not captured output.
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-based | Policy-based | |
|---|---|---|
| What is encrypted | Anything routed to the tunnel | Traffic matching ACL |
| Dynamic routing | Yes (OSPF/BGP over tunnel) | No |
| Failover | Routing metrics | Complex |
| Interop | Most firewalls/cloud VPNs | Legacy peers |
Cloud VPN gateways (AWS, Azure) are route-based and expect BGP or static routes over the tunnel.
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 → 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%