Posts

Tunneling provides a mechanism to transport packets of one protocol within another protocol. The protocol that is carried is called as the passenger protocol, and the protocol that is used for carrying the passenger protocol is called as the transport protocol. Generic Routing Encapsulation (GRE) is one of the available tunneling mechanisms which uses IP as the transport protocol and can be used for carrying many different passenger protocols. The tunnels behave as virtual point-to-point links that have two endpoints identified by the tunnel source and tunnel destination addresses at each endpoint.

R1(config)# int tunnel 1
R1(config-if)# ip address 172.16.1.1 255.255.255.0
R1(config)# tunnel source 1.1.1.1
R1(config)# tunnel destination 2.2.2.2
R2(config)# int tunnel 1
R2(config-if)# ip address 172.16.1.2 255.255.255.0
R2(config)# tunnel source 2.2.2.2
R2(config)# tunnel destination 1.1.1.1
R1(config)# ip route 192.168.2.0 255.255.255.0 172.16.1.2
R2(config)# ip route 192.168.1.0 255.255.255.0 172.16.1.1