First of all, we need to define the different protocols involved in tunneling:
- Carrier Protocol: In our case GRE, the protocol that is in charge of the encapsulation.
- Passenger Protocol: The protocol which is going to be encapsulated.
- Transport Protocol:The protocol is used to transport the passenger protocol.
For our example we are going to create a GRE tunnel between R2 and R3. We just used static routes between the different routers to assured network conectivity for the different networks.
Router R2 Configuration:
interface Loopback0 ip address 192.168.100.1 255.255.255.0 ! interface Tunnel0 ip address 192.168.0.1 255.255.255.0 keepalive 5 3 tunnel source 10.0.0.2 tunnel destination 10.10.0.2 ip route 192.168.200.0 255.255.255.0 Tunnel0 |
Router R3 Configuration:
iinterface Loopback0 ip address 192.168.200.1 255.255.255.0 ! interface Tunnel0 ip address 192.168.1.1 255.255.255.0 keepalive 10 3 tunnel source 10.10.0.2 tunnel destination 10.0.0.2 ! ip route 192.168.100.0 255.255.255.0 Tunnel0 |
Manual IPv6 tunnels
We can use a tunnel also to connect IPv6 networks across an IPv4 specifying the ipv6 keyword in the tunnel mode command. In this case, ipv6 will be the passenger protocol as ipv4 is the the carrier and transport protocol.
In our example we are establishing a tunnel between R2 and R3.
This will be the configuration:
R2#interface Tunnel0 no ip address ipv6 address 2001::1/32 keepalive 3 3 tunnel source 10.0.0.2 tunnel destination 10.10.0.2 tunnel mode ipv6ip |
R3#interface Tunnel0 no ip address ipv6 address 2001::2/32 keepalive 3 3 tunnel source 10.10.0.2 tunnel destination 10.0.0.2 tunnel mode ipv6ip |
No comments:
Post a Comment