GRE Tunnels
Cheat sheet · https://pcornel.dk/topic.php?topic=171
Answer
A GRE tunnel is a virtual point-to-point link between two routers that may be many hops apart. Packets sent into it are wrapped in a new IP packet addressed to the other router, and unwrapped there.
Remember
By default the tunnel is up as soon as there is a route to its destination — it does not check the far end; use keepalive or a routing protocol across it. The route to the tunnel destination must never be learned through the tunnel. Lower the MTU: ip mtu 1400 and ip tcp adjust-mss 1360. GRE is not encrypted.
First checks
show interfaces Tunnel<n>— state, source, destination, keepalive, counters.show ip route <tunnel destination>— must leave by a physical interface.ping <tunnel destination> source <tunnel source>— the underlay.ping <far tunnel address> size 1400 df-bit— the tunnel itself at full size.
Commands
show dmvpn- Lists DMVPN peers per tunnel interface: NBMA address, tunnel address, state and up/down time.
show ip nhrp- Shows the NHRP mappings from tunnel IP addresses to NBMA (public) addresses.
ip tcp adjust-mss 1436ip mtu 1400ip tcp adjust-mss 1360ip mtuip tcp adjust-mss
Verify in this order
tunnel source up → route to the tunnel destination through the underlay → far end configured as the mirror image → IP protocol 47 permitted → tunnel up → MTU and MSS adjusted → traffic in both directions
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=171