Tunneling IPv6 Through an Existing IPv4 Network
Problem
You want to connect two IPv6 networks through an existing IPv4 network that doesn’t natively support IPv6.
Solution
The easiest way to pass IPv6 traffic through a section of IPv4 network that doesn’t offer native IPv6 support is to create a simple GRE tunnel:
Router1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router1(config)#interface
Router1(config-if)#
Loopback1
ip address
Router1(config-if)#
10.15.1.11 255.255.255.255
exit
Router1(config)#interface
Router1(config-if)#
Tunnel1
ipv6 address
Router1(config-if)#
BBBB:1::1/126
ipv6 rip
RIP_PROC
enable
Router1(config-if)#tunnel source
Router1(config-if)#
10.15.1.11
tunnel destination
Router1(config-if)#
172.16.11.9
exit
Router1(config)#end
Router1#
And then you configure the device on the other end similarly:
Router9#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. Router9(config)#interface
Router9(config-if)#
Loopback1
ip address
Router9(config-if)#
172.16.11.9 255.255.255.255
exit
Router9(config)#interface
Router9(config-if)#
Tunnel1
ipv6 address
Router9(config-if)#
BBBB:1::2/126
ipv6 rip
RIP_PROC
enable
Router9(config-if)#tunnel source
Router9(config-if)#
172.16.11.9
tunnel destination
Router9(config-if)#
10.15.1.11
exit
Router9(config)#end
Router9#
Discussion
This example is actually simpler than a lot of GRE tunnel configuration examples because the protocol used to support the tunnel end points is different from the protocol ...
Get Cisco IOS Cookbook, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.