Configure GRE Tunnel: Basic Requirement For GRE Configuration
Configure GRE Tunnel: Basic Requirement For GRE Configuration
Configure GRE Tunnel: Basic Requirement For GRE Configuration
Basic Information: Generic Routing Encapsulation (GRE) tunneling is used to take another
protocol payload, such as IPv4, IPv6, IPX, etc., and tunnel it over an IPv4 or IPv6 transit
network, by using IP protocol number 47. In this case, GRE is used to tunnel IPv4 packets between
the Loopback0 networks o. Because the GRE tunnel is configured as point-to-point, static routes can
be configured to point out the Tunnel directly, and a next-hop address is not required. We can verify
that traffic between these networks is going out the tunnel because the traceroute output shows
only one hop between the networks, which is the GRE tunnel.
Router#conf t
Router(config)#int Tunnel 113
Router(config-if)#ip add 155.1.13.1
Router(config-if)#tunnel source 155.1.13.1
Router(config-if)#tunnel destinaition 155.1.13.3
Router(config-if)#tunnel mode gre
Router(config-if)#exit
Router(config)#ip route 150.1.3.3 255.255.255.255 Tunnel113
Router#conf t
Router(config)#int Tunnel 113
Router(config-if)#ip add 155.13.0.3 255.255.255.0
Router(config-if)#tunnel source 155.1.13.3
Router(config-if)#tunnel destinaition 155.1.13.1
Router(config-if)#tunnel mode gre
Router(config-if)#exit
Router(config)#ip route 150.1.1.1 255.255.255.255 Tunnel113
Verification
R1#show ip route 150.1.3.3
Routing entry for 150.1.3.3/32
Known via "static", distance 1, metric 0 (connected)
Routing Descriptor Blocks:
* directly connected, via Tunnel0
Route metric is 0, traffic share count is 1
R1#traceroute 150.1.3.3
Type escape sequence to abort.
Tracing the route to 150.1.3.3
VRF info: (vrf in name/id, vrf out name/id)
1 155.13.0.3 4 msec * 2 msec