Pcornel
Networking · Network & Protocols › Tunnels & Overlays

GRE Header Evidence

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

Back to the Topic

Answer

A GRE packet is the original packet with two headers in front: a new IP header (protocol 47) to the other tunnel endpoint, and a 4-byte GRE header naming what is inside. Optional checksum, key and sequence fields add four bytes each.

Remember

The protocol type uses EtherType values: 0x0800 IPv4, 0x86DD IPv6. A key configured on one side only, or different keys, makes the receiver discard the packets silently. GRE has no ports, so it does not pass port-based NAT, and firewalls need an explicit rule for protocol 47.

First checks

  • show interfaces Tunnel<n> — key, checksum and keepalive settings; packets in and out; input errors.
  • Capture filter gre or ip.proto == 47 — outer endpoints, flags, protocol type, key, inner addresses.

Verify in this order

inner packet routed into the tunnel → GRE header with matching options and key → outer IP header, protocol 47, to the far endpoint → permitted on the path → accepted by the matching tunnel → inner packet routed on

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=335

Confirmation

Confirm action

Continue?