Table of Contents
In this confgiuration example, we will see how to configure Cisco GRE (Generic Routing Encapsulation) Tunnel with Packet Tracer. For our GRE Tunnel Configuration example, we will use the below topology and the given IP addresses.
You can DOWNLOAD the Cisco Packet Tracer example with .pkt format At the End of This Lesson.
You can also DOWNLOAD all the Packet Tracer examples with .pkt format in Packet Tracer Labs section.
Here, we assume that all the IP Configurations have been done and we will focus only GRE Tunel Configuration with Packet Tracer. Let’s start with Router 0.
In Router 0, we will create the Tunnel interface and then give this interface an IP Address. After that, we we will define the Tunnel Source, with IP Address or with Interface name. Here, we used Interface name. Lastly, we define the Tunnel Destination IP address.
R0(config)# interface Tunnel 1
R0(config-if)# ip address 18.104.22.168 255.255.255.0R0(config-if)# tunnel source FastEthernet 0/0R0(config-if)# tunnel destination 22.214.171.124R0(config-if)# endR0# copy running-config startup-config
Now, let’s configure Router 2. We will do the same configuration on Router 2, only IP addresses will change.
R2(config)# interface Tunnel 1R2(config-if)# ip address 126.96.36.199 255.255.255.0R2(config-if)# tunnel source FastEthernet 0/0R2(config-if)# tunnel destination 10.0.0.1R2(config-if)# endR2# copy running-config startup-config
After Tunnel configuration, we need to write a Static Route on Router 0 and Router 2. Because, the routers needs to know how to reach to the users connected to the other end router. In other words, because of the fact that the other end LAN is not directly connected to the router, it needs routing information and we provide this with a Static Route.