liveBook · Manning

GRE

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

GRE is a tunneling protocol that encapsulates network packets with additional headers but does not encrypt their contents.

GRE creates a tunnel by encapsulating an original network packet with additional headers. The outer packet carries the inner packet across an intermediate network, but GRE does not encrypt the original contents. section 16.3.1

Use GRE when tunnel flexibility matters more than standalone confidentiality:

  • Carry broadcast and multicast traffic, unlike IPsec on its own, which supports only unicast traffic. section 16.3.1
  • Support routing protocols such as OSPF, whose routing messages use multicast addresses 224.0.0.5 and 224.0.0.6. section 16.3.1
  • Do not treat GRE alone as a VPN: anyone accessing tunnel traffic can read its contents. section 16.3.1

GRE over IPsec

Combine GRE with IPsec when a tunnel must carry multicast traffic securely. First, encapsulate the IP packet with a GRE header and a new IP header. Then encrypt the complete GRE packet and encapsulate it with IPsec and additional IP headers. The result is a tunnel within a tunnel: GRE supplies broadcast and multicast support, while IPsec supplies encryption. section 16.3.1

Figure 16.14 A tunnel is created by encapsulating a packet inside of another packet. This outer packet provides a “tunnel” for the inner packet to travel through without being exposed to the internet.

Trace how an outer packet provides a tunnel for an encapsulated inner packet. section 16.3.1

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains encapsulation, security limits, multicast support, and GRE-over-IPsec packet layering without configuration commands.
Examples
Uses OSPF multicast traffic and the GRE-over-IPsec encapsulation sequence as concrete examples.
What it assumes
Assumes basic packet tunneling, IPsec, unicast, broadcast, multicast, and OSPF terminology.
What you can do after
Evaluate when GRE, IPsec, or GRE over IPsec fits a tunnel’s traffic and security requirements.
How it connects
Connects GRE with tunneling, IPsec, VPNs, OSPF, multicast, and site-to-site networking.

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.