Site-to-Site
Cheat sheet · https://pcornel.dk/topic.php?topic=1519
Answer
A site-to-site VPN connects two networks through a permanent encrypted tunnel between two gateways, usually IPsec with IKEv2.
Remember
Both peers must agree on proposals, authentication and the protected networks (traffic selectors or VTI routing). Exclude VPN traffic from NAT. Use dead peer detection and monitor the tunnel.
First checks
show crypto ikev2 sa— IKEv2 security associations and their state.show crypto isakmp sa— IKEv1 phase 1 state (QM_IDLE is up).show crypto ipsec sa— IPsec SAs, encrypt and decrypt counters.show crypto session— summary of tunnels and peers.show interfaces tunnel <n>— tunnel interface state for VTI/DMVPN.
Verify in this order
peers reachable (UDP 500/4500, ESP) → IKE proposals match → peers authenticate → IKE SA up → IPsec SAs for the traffic → routing sends traffic into the tunnel → encrypt and decrypt counters increase
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=1519