Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Configure GRE Tunnel: Basic Requirement For GRE Configuration

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 9

Configure GRE tunnel

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.

Basic requirement for GRE configuration.


Confirm the IP address reachability from source to destination on which you are required to
configure the GRE Tunnel.

#ping source IP address destination IP address.


!!!!!
If the ip address is reachable we can configure the tunnel on it.

Configuration of GRE tunnel between Two devices

1) Configure the Tunnel related configuration on first device interface.


Mention the source and destination of tunnels generally we are using the Loopback IP address of
the devices on which we need to configure 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

2) Configure the Tunnel related configuration on second device interface.

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

R3#show interfaces tunnel13


Tunnel13 is up, line protocol is up
Hardware is Tunnel
Internet address is 155.13.0.3/24
MTU 17868 bytes, BW 100 Kbit/sec, DLY 50000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation TUNNEL, loopback not set
Keepalive not set
Tunnel source 155.1.13.3, destination 155.1.13.1
Tunnel protocol/transport GRE/IP
Key disabled, sequencing disabled
Checksumming of packets disabled
Tunnel TTL 255, Fast tunneling enabled
Tunnel transport MTU 1476 bytes

R1#ping 150.1.3.3 source loopback0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.1.3.3, timeout is 2 seconds:
Packet sent with a source address of 150.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms
Ø Guest Wireless cutover
Ø ANIRA device configuration

You might also like