我是 IPv6 主题的新手,昨天我使用 RIPng 对 IPv6 中寻址类型的 Cisco IOS 和 Cisco 路由器进行了一些测试,我正在测试以下内容:
- 全球单播地址
- 链路本地地址
- 任播地址
- 唯一的本地地址(我也有一个困惑,但我会在其他时间和问题发布它)
这是我的网络拓扑图

测试发生在 Cisco Packet Tracer 6.2 版本中。
目标:我想要实现的是使用网络上的 2 个 DNS 服务器的任播地址,1 个在 R1 LAN 下,2 个在 R2 LAN 下,LAN 的其余部分使用全球单播用于各自的网络,并允许终端设备如果其中任何一个失败,则继续向 DNS 发送请求。
出于某种原因,我仍然不明白的是,当我在主机或终端设备上进行无状态自动配置时,路由器会选择内部 LAN 的任播地址,而不是全局单播地址。
在我的研究过程中,我观看了以下 YouTube 视频IPv6-07 Cisco IPv6 Anycast这就是为什么它激励我自己进行测试。
我知道通过在 L3 交换机中执行 VLAN 可以满足我的要求,但让我们跳过这一点,假设我有一个普通的 LAN。
当我在 R1 上显示 IPv6 接口 g0/0时
这是我收到的输出
R1#show int g0/0
GigabitEthernet0/0 is up, line protocol is up (connected)
Hardware is CN Gigabit Ethernet, address is 00d0.ff96.cd01 (bia 00d0.ff96.cd01)
MTU 1500 bytes, BW 1000000 Kbit, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Full-duplex, 100Mb/s, media type is RJ45
output flow-control is unsupported, input flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00,
Last input 00:00:08, output 00:00:05, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: fifo
Output queue :0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 149 bits/sec, 0 packets/sec
3 packets input, 224 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 watchdog, 1017 multicast, 0 pause input
0 input packets with dribble condition detected
73 packets output, 39144 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
这是 show ipv6 interface brief 和 show running-config
GigabitEthernet0/0 [up/up]
FE80::1
2001:DB8:22::1
2345::
GigabitEthernet0/1 [administratively down/down]
GigabitEthernet0/2 [administratively down/down]
Serial0/0/0 [up/up]
FE80::1
2001:DB8:1::1
Serial0/0/1 [administratively down/down]
Serial0/1/0 [administratively down/down]
Serial0/1/1 [administratively down/down]
Vlan1 [administratively down/down]
显示运行
R1#show run
Building configuration...
Current configuration : 1287 bytes
!
version 15.1
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname R1
!
!
!
!
!
!
!
!
no ip cef
ipv6 unicast-routing
!
no ipv6 cef
!
ipv6 dhcp pool R1
dns-server 2345::9
!
!
!
license udi pid CISCO2911/K9 sn FTX1524RD6F
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:22::/64 eui-64
ipv6 address 2345::/64 anycast
ipv6 nd other-config-flag
ipv6 rip RIP1 enable
ipv6 dhcp server R1
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
shutdown
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0/0
no ip address
ipv6 address FE80::1 link-local
ipv6 address 2001:DB8:1::1/64
ipv6 rip RIP1 enable
clock rate 128000
!
interface Serial0/0/1
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/0
no ip address
clock rate 2000000
shutdown
!
interface Serial0/1/1
no ip address
clock rate 2000000
shutdown
!
interface Vlan1
no ip address
shutdown
!
ipv6 router rip RIP1
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
line con 0
!
line aux 0
!
line vty 0 4
login
!
!
!
end
PS:我需要使用链接本地地址进行说明,为什么我可以多次将链接本地放在同一设备上的所有接口上?这让我很困惑,因为 R2 有其他链接本地地址,我也可以把它放在所有它的接口上