Pcornel
Networking · Virtualization & Overlays › GRE

GRE Encapsulation

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

Back to the Topic

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, MTU
  • ping <remote-tunnel-ip> size 1476 df-bit — MTU test

Commands

ip mtu
ip tcp adjust-mss
ip mtu 1400
ip tcp adjust-mss 1360
show interfaces Tunnel0
ip mtu 1476
ip 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

Confirmation

Confirm action

Continue?