实现IPv4与IPv6之间的通信
拓扑图如图所示:
路由器的配置如下:
AR1:
system-view
sysname AR1
ipv6
interface g0/0/1
ip address 192.168.6.1 255.255.255.0
interface g0/0/2
ipv6 enable
ipv6 address 2001:0:0:6::1/64
interface tunnel0/0/2
ip address 10.10.10.1 255.255.255.0
tunnel-protocol ipv4-ipv6
source 2001:0:0:6::1
destination 2001:0:0:6::2
ip route-static 192.6.6.0 255.255.255.0 10.10.10.2
AR2:
system-view
sysname AR2
ipv6
interface g0/0/1
ip address 192.6.6.1 255.255.255.0
interface g0/0/2
ipv6 enable
ipv6 address 2001:0:0:6::2/64
interface tunnel0/0/2
ip address 10.10.10.2 255.255.255.0
tunnel-protocol ipv4-ipv6
source 2001:0:0:6::2
destination 2001:0:0:6::1
ip route-static 192.168.6.0 255.255.255.0 10.10.10.1
菜菜的代码,希望能够帮助到你哟!