Networking · Network Devices › Router
VPN
Cheat sheet · https://pcornel.dk/topic.php?topic=849
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.
Remember
- Routers can terminate site-to-site and remote access VPNs.
- IPsec and VTIs are typical.
- VPN needs matching crypto settings on both peers.
First checks
show crypto session— VPN sessionsshow crypto ipsec sa— counters
Commands
show crypto ikev2 sashow crypto ipsec sa
Verify in this order
IKE → IPsec → encrypted traffic
Where it usually breaks
underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=849