Pcornel
Networking · Network Devices › Router

VPN

Cheat sheet · https://pcornel.dk/topic.php?topic=849

Back to the Topic

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 sessions
  • show crypto ipsec sa — counters

Commands

show crypto ikev2 sa
show 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

Confirmation

Confirm action

Continue?