GRE Tunnel
What is a GRE Tunnel?
A GRE (Generic Routing Encapsulation) tunnel is a protocol developed by Cisco that encapsulates a wide variety of network layer protocols inside virtual point-to-point links over an IP network. Essentially, it allows for the creation of a private, secure, and isolated path between two endpoints over a public or untrusted network, like the Internet.
Why is it Used?
GRE tunnels are used for several reasons:
- Protocol Encapsulation: GRE can encapsulate a variety of network layer protocols, enabling the transport of protocols that might not be natively supported by the underlying network.
- Multicast Traffic: Unlike some other tunneling protocols, GRE supports multicast traffic, making it suitable for dynamic routing protocols.
- Simplified Connectivity: It simplifies the setup of VPNs and other network connections by creating a virtual point-to-point link.
- Interoperability: GRE is defined in RFC 2784, making it widely supported across different vendors.
Pros and Cons
Pros:
- Flexibility: Can encapsulate a variety of protocols, making it highly versatile.
- Multicast Support: Supports multicast traffic, which is essential for dynamic routing protocols.
- Simplicity: Easy to configure and does not require complex setups.
- Interoperability: Supported by multiple vendors, ensuring broad compatibility.
Cons:
- Lack of Security: GRE does not provide built-in encryption or confidentiality, making it susceptible to certain types of cyber attacks if not paired with a security protocol like IPsec.
- Overhead: Adds additional headers to the encapsulated packets, which can increase the overall packet size and potentially reduce performance.
Basic GRE tunnel Lab:
Goal: Ping Loopbacks present at R1 and
R4 using GRE tunnel.
GRE tunnels are used to encapsulate IP
packets and send it over the public domain.
Important Points:
·
GRE is default type of a tunnel
encapsulation.
·
The IP packet is encapsulated
with the GRE Header, tunnel destination/source IP header and sent over the
public domain.
·
Not secure, as it is clear
text.
Conditions for GRE Tunnel to work:
·
Tunnel source and destination
should be valid and reachable.
·
Tunnel should have an IP
address
This lab illustrates the concept in simple
way.
Comments
Post a Comment