1、拓扑如下:
ipv4地址:1.1.1.1 对应 2002:101:101:ffff::1中0101:0101
2、路由器配置
(1)R1配置
interface GigabitEthernet0/0/0
ip address 10.0.13.1 255.255.255.0
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface LoopBack1
ipv6 enable
ipv6 address 2002:101:101:FFFF::1/64
#
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2001:13::1/64
tunnel-protocol ipv6-ipv4 6to4
source 1.1.1.1
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.0.13.1 0.0.0.0
#
ipv6 route-static 2002:: 16 Tunnel0/0/0
(2)R2配置
interface GigabitEthernet0/0/0
ip address 10.0.13.2 255.255.255.0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface LoopBack1
ipv6 enable
ipv6 address 2002:202:202:FFFF::2/64
#
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2001:13::2/64
tunnel-protocol ipv6-ipv4 6to4
source 2.2.2.2
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 10.0.13.2 0.0.0.0
#
ipv6 route-static 2002:: 16 Tunnel0/0/0
(3)R3配置
interface GigabitEthernet0/0/0
ip address 10.0.13.3 255.255.255.0
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface LoopBack1
ipv6 enable
ipv6 address 2002:303:303:FFFF::3/64
#
interface Tunnel0/0/0
ipv6 enable
ipv6 address 2001:13::3/64
tunnel-protocol ipv6-ipv4 6to4
source 3.3.3.3
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 10.0.13.3 0.0.0.0
#
ipv6 route-static 2002:: 16 Tunnel0/0/0
3、实验结果
SLA:65535 对应 2002:202:202:ffff::2中的 ffff