Generic Routing Encapsulation (GRE) Tunnel (original) (raw)

Last Updated : 10 Oct, 2025

Generic Routing Encapsulation (GRE) is a tunneling protocol developed by Cisco that encapsulates one network protocol inside another. It is primarily used to transport packets from one network to another securely and efficiently. GRE creates a virtual point-to-point connection between routers, allowing different network segments or protocols to communicate as if they were directly connected.

gre_network

Generic Routing Encapsulation

GRE Encapsulation Process

When GRE is configured between routers, the original IP packet is encapsulated with two additional headers:

  1. **GRE Header: Provides information for the tunnel, effectively acting as a new IP header.
  2. **Delivery Header: Contains the new source and destination IP addresses of the tunnel endpoints.

**Note: Generic Routing Encapsulation process hides the original IP packet during transit. Only the routers configured with GRE can encrypt, decrypt and interpret these headers.

**Note: This mechanism simulates a tunnel between routers, hence the term GRE tunneling.

Routing Over GRE Tunnel

Without GRE, routers forward traffic based on their physical interfaces and normal IP routing. However, when GRE is configured:

Example Scenario

network_with_gre_ip_routing

Network with GRE IP Routing

**Note: GRE creates a transparent communication tunnel between R1 and R2, ensuring end-to-end connectivity across different or separated networks.

GRE Tunnel Benefits

Limitations of GRE