Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VPN

Direct answer

On a router, a VPN builds encrypted tunnels (usually IPsec, often with GRE, DMVPN or FlexVPN) to connect sites or remote users securely across untrusted networks.

When to use this

Use it when a router-terminated VPN is down or passes no traffic.

First 30 seconds

1. Routers terminate site-to-site and remote access VPNs.

2. IKEv2 + IPsec.

3. Route-based preferred.

4. Hardware crypto capacity.

5. Monitor SAs.

Operational verification

IKE → IPsec → encrypted 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
Scope / prerequisiteUse it when a router-terminated VPN is down or passes no traffic.
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.

1 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 Common router VPN problems Narrow the fault
  • Mismatched proposals or PSKs (NO_PROPOSAL_CHOSEN, AUTHENTICATION_FAILED).
  • NAT applied to traffic that should go into the tunnel (exempt it from NAT).
  • Routing to the remote subnet missing or pointing out the internet interface.
  • MTU/MSS not adjusted, so large packets fail.
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
  • Routers can terminate site-to-site and remote access VPNs.
  • IPsec and VTIs are typical.
  • VPN needs matching crypto settings on both peers.
Key checks
  • show crypto session — VPN sessions
  • show crypto ipsec sa — counters
ReferenceWhat it is1 section · depth on demand

How it works

Routers terminate site-to-site VPNs with IPsec (crypto maps or route-based VTI/DMVPN) and sometimes remote access. Route-based VPNs use tunnel interfaces so routing protocols can run over the tunnel; policy-based crypto maps encrypt traffic matching an ACL.

ReferenceWhy it matters1 section · depth on demand

Router VPN options

OptionUse
Crypto map (policy-based)Legacy site-to-site with interesting-traffic ACLs
VTI (route-based)Site-to-site with routing over a tunnel interface
DMVPNHub-and-spoke with dynamic spoke-to-spoke tunnels
FlexVPN (IKEv2)Unified framework for site-to-site and remote access
GRE over IPsecWhen multicast or non-IP is needed

Check with show crypto ikev2 sa, show crypto ipsec sa and the routing table for routes through the tunnel.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

VPNs on the router: IPsec with virtual tunnel interfaces

Routers commonly terminate site-to-site and remote-access VPNs. Cisco's IOS XE IPsec VTI guide describes the modern approach: a virtual tunnel interface is a routable interface that terminates IPsec, so you can route to it, run routing protocols over it, and apply QoS, firewall and NAT features to it. Traffic is encrypted simply because routing sends it out of the VTI.

Static and dynamic VTIs (VTI guide)

TypeUseBehaviour
Static VTIAlways-on site-to-site between two fixed peersOne IPsec SA with traffic selector any any
Dynamic VTIHub-and-spoke, remote accessA virtual template is cloned per session and removed when it ends
BR1(config)# crypto ikev2 proposal IKEV2-PROP
BR1(config-ikev2-proposal)# encryption aes-gcm-256
BR1(config-ikev2-proposal)# prf sha384
BR1(config-ikev2-proposal)# group 20
BR1(config)# crypto ipsec transform-set TS esp-gcm 256
BR1(cfg-crypto-trans)# mode tunnel
BR1(config)# crypto ipsec profile VTI-PROF
BR1(ipsec-profile)# set transform-set TS
BR1(ipsec-profile)# set ikev2-profile IKEV2-HQ
BR1(config)# interface Tunnel10
BR1(config-if)# ip address 10.255.10.2 255.255.255.252
BR1(config-if)# tunnel source GigabitEthernet0/0/0
BR1(config-if)# tunnel mode ipsec ipv4
BR1(config-if)# tunnel destination 203.0.113.10
BR1(config-if)# tunnel protection ipsec profile VTI-PROF
BR1# show crypto ikev2 sa
BR1# show crypto ipsec sa interface Tunnel10 | include pkts|status
    #pkts encaps: 48211, #pkts encrypt: 48211, #pkts digest: 48211
    #pkts decaps: 47302, #pkts decrypt: 47302, #pkts verify: 47302
        Status: ACTIVE(ACTIVE)

Notes from the VTI guide

PointDetail
Feature placementClear-text features on the VTI; encrypted-traffic features on the outside interface
FragmentationNot supported over the IPsec tunnel; lower the MTU or fragment before encryption
Transform setsTunnel mode only
Configuring protectionShut the static tunnel before adding tunnel protection, then re-enable it

VPN types on routers

TypeTechnology
Site-to-siteIPsec VTI, GRE over IPsec, DMVPN, FlexVPN
Remote accessFlexVPN with IKEv2, or a firewall-based remote-access VPN
Provider VPNMPLS L3VPN (not encrypted by itself)

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.
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 Network Devices → Router → 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?