Use it as the entry point when something on VPN fails and you need to find the failing layer.
VPN Troubleshooting
reachability → IKE → auth → child SA → routing
Context & applicabilityCommon mistakes · platform/version boundaries
A successful tunnel probe shows its client, peer, route and flow context, but it does not show every subnet, user, application, failover node or rekey event.
Suspicious evidence: wrong peer identity, no proposal, IKEv1 legacy, certificate/PSK, selector mismatch, missing return route, NAT-T, replay, PMTU, split DNS, rekey or application failure mislabeled VPN.
Operational reference
Fast context before you go deeper.
show crypto sessionShow Commands
Read-only and diagnostic commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & 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 Verification path Verify boundary
Step 2 Verify VPN repair with negotiated tunnel state, protected-route selection and original workload traffic Verify boundary
Verify VPN by establishing a fresh session and expect tunnel state Up or Established with the intended peer identity, assigned address and negotiated policy. Confirm the protected destination selects the VPN route and that encryption/encapsulation counters increase in both directions during one controlled request, then repeat the original application test. An Up VPN tunnel shows control-plane negotiation completed, but it does not show the protected route, remote firewall, DNS or application path is healthy.
Step 3 Known-good, broken and when it is fixed Verify boundary
Known-good requires the intended SA/tunnel to establish with the expected peer and cryptographic policy, controlled protected traffic to increment both directions, and the original application to complete over the VPN. Confirm non-protected traffic follows its intended path. Tunnel 'up' shows only negotiated control state, but it does not show selectors, remote routing or application reachability.
Step 4 Known-good, broken and when it is fixed Verify boundary
Verification for VPN → VPN Troubleshooting must discriminate known-good from broken/suspicious state. With show crypto session, known-good is: the intended peer/session is established and matches the expected protected flow. Broken/suspicious is: session is absent, down, negotiating repeatedly or bound to unexpected peer/parameters. Read back the same target after the minimal approved change, then inspect IKE/IPsec SAs and counters, routing/selectors and an original application flow.
Step 5 Branch VPN failures at peer reachability, authentication, negotiation, routing and application flow Narrow the fault
If the VPN client or peer cannot reach the gateway, verify underlay DNS, routing and transport port first. If the gateway responds but authentication fails, inspect the exact principal, certificate or MFA result. If authentication succeeds but tunnel negotiation fails, compare proposals, versions and policy selectors. If the tunnel is Up but traffic fails, query assigned routes, selector counters and NAT and capture both directions. If protected packets pass but the application remains unavailable, branch to DNS, firewall or backend service instead of rebuilding the VPN.
Step 6 Native failure isolation and next-check logic Narrow the fault
Separate tunnel establishment from data-plane forwarding. Show peer reachability and IKE/authentication first, then inspect negotiated proposals/SAs, local/remote selectors, route to the protected prefix, NAT exemptions and encrypt/decrypt counters while generating one controlled flow. A rising encrypt counter with no decrypt usually shifts attention to the peer/return path; no counter movement suggests selector/routing/policy mismatch. Avoid deleting all SAs before recording why negotiation or data forwarding failed.
Step 7 Observation-driven troubleshooting tree Narrow the fault
Troubleshoot VPN → VPN Troubleshooting from one exact failing target, revision/input and timestamp. Capture show crypto session before mutation, then branch by the first divergent observation: no IKE session, inspect peer reachability, UDP 500/4500 and authentication; IKE is up but no IPsec SA, inspect selectors/proposals; SAs are up but counters do not move, inspect routing/interesting traffic/NAT; encapsulation increases without decapsulation, investigate remote policy/return path; tunnel passes traffic but app fails, move to service layer. Typical failure signatures include peer timeout, PSK/certificate mismatch, proposal mismatch, expired cert, wrong proxy IDs/selectors, NAT exemption failure, stale SA, asymmetric routing, MTU blackhole or tunnel established with no usable protected traffic.
Step 8 Failure signatures, dependencies and operational guardrails Narrow the fault
Failure-signature and guardrail reference for VPN → VPN Troubleshooting: Peer timeout, PSK/certificate mismatch, proposal mismatch, expired cert, wrong proxy IDs/selectors, NAT exemption failure, stale SA, asymmetric routing, MTU blackhole or tunnel established with no usable protected traffic. Operational guardrail: Session state is only one layer; show crypto session cannot show every selector, return path or application transaction without counters and the original protected workload. Dependencies that can mimic the same symptom are Internet/WAN reachability, DNS, certificates/PSKs, time, proposal/policy compatibility, NAT traversal, routing/VRF, ACL/firewall, MTU/MSS and remote protected network availability.
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.
- Tunnel down ≠ Internet path failure automatically.
- Tunnel up ≠ traffic selectors, routes or applications healthy.
- Tunnel or SA up ≠ protected application traffic succeeds.
- Cryptographic negotiation ≠ correct identity, selector, route or application outcome.
show crypto ikev2 sa / show crypto ipsec sa— state and countersswanctl --log— live IKE logtcpdump -ni <if> udp port 500 or udp port 4500 or esp— packets
ReferenceWhy it matters1 section · depth on demand
VPN service state spans peer reachability, authentication, tunnel negotiation, routes and protected traffic
VPN troubleshooting must distinguish the control exchange that creates a tunnel from the data-plane state that carries protected traffic. Peer reachability, credentials or certificates, proposal compatibility, virtual addresses, routes, split-tunnel policy and NAT can fail independently. A VPN interface may report Connected while no useful route exists, and a healthy route can point into a tunnel with expired security state. Record peer identity, assigned address, negotiated parameters, route table and traffic selectors before reconnecting the VPN.
ReferenceHow it works2 sections · depth on demand
How it works
VPN troubleshooting spans underlay reachability, peer identity/authentication, key exchange, security associations, traffic selectors/routes, encapsulation, NAT traversal and the protected application's return path. Site-to-site and remote-access VPNs differ in client posture/address assignment, but both can establish a control-plane tunnel while carrying no useful data because selectors, routes or policy do not match the real traffic.
How it works
VPN → VPN Troubleshooting owns peer reachability, IKE negotiation and authentication, IPsec security associations, crypto proposals and lifetimes, traffic selectors, routing, NAT exemption, security policy and protected application path. Execution mechanics: The peers first establish IKE state and authenticate, negotiate child/IPsec SAs with matching algorithms and selectors, install security state, then interesting traffic must route into the tunnel and return through matching policy without NAT or ACL asymmetry. Keep adjacent dependencies separate: Internet/WAN reachability, DNS, certificates/PSKs, time, proposal/policy compatibility, NAT traversal, routing/VRF, ACL/firewall, MTU/MSS and remote protected network availability. The mapped read surface show crypto session exposes VPN peer/session state and negotiated security association context.
ReferenceImportant terms & boundaries1 section · depth on demand
What this shows and what it does not
A successful tunnel probe shows its client, peer, route and flow context, but it does not show every subnet, user, application, failover node or rekey event.
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 VPN → VPN Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc4301 · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
VPN → VPN Troubleshooting proof map
Fast scope, effective-policy, runtime-evidence and closure boundaries for VPN → VPN Troubleshooting.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope and intent | Exact subjects, destinations, application, direction, trust zone and expected decision | Does not prove effective path, identity, cryptography or enforcement |
| Effective control state | Resolved rule/policy, session/SA, identity/posture, translation and selected path | Object/config presence does not prove a match or packet outcome |
| Runtime evidence | Correlated client, authenticator/firewall/VPN, AAA and destination observations for one flow/time | A single log or success does not prove every packet, peer, path or failover state |
| Closure | Original allowed/denied operation behaves as intended and regression/failure tests pass | Administrative commit or tunnel-up state alone is not closure |