Networking · Virtualization & Overlays › GRE
GRE Encapsulation
Cheat sheet · https://pcornel.dk/topic.php?topic=1334
Answer
GRE encapsulation wraps the original packet in a new IP header (protocol 47) plus a 4-byte GRE header, adding 24 bytes, so the tunnel MTU is lower than the physical MTU.
Remember
- GRE uses IP protocol 47, not TCP/UDP port 47
- Tunnel line protocol depends on local source and recursive reachability to the destination
- GRE adds overhead and can expose MTU, MSS and fragmentation problems
- GRE alone provides no encryption, integrity or peer authentication.
First checks
show interfaces tunnel <n>— encapsulation GRE, MTUping <remote-tunnel-ip> size 1476 df-bit— MTU test
Commands
ip mtuip tcp adjust-mssip mtu 1400ip tcp adjust-mss 1360show interfaces Tunnel0ip mtu 1476ip tcp adjust-mss 1436
Verify in this order
payload → GRE header → new IP header → underlay
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=1334