我有一个这样的网络,(客户端2001:10:1:100:0/64) - >路由器 - >(服务器2001:172:16:200:0/64)
但是,当我从客户端 ping 到 172.16.200.0 网络(或任何地方)时,它始终使用链接本地地址而不是全局地址。
ens192 Link encap:Ethernet HWaddr 00:0c:29:e8:87:5a
inet addr:10.1.100.11 Bcast:10.1.100.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fee8:875a/64 Scope:Link <------ uses this
inet6 addr: 2001:10:1:100::11/64 Scope:Global <----- want to use this
我可以在我的路由器调试上看到这一点,请注意源地址是本地链接,而不是全局链接
FGT-B (vd1) # id=20085 trace_id=5 func=resolve_ip6_tuple_fast line=4005 msg="vd-vd1:0 received a packet(proto=58, fe80::20c:29ff:fee8:875a:1115->2001:172:16:200::44:128) from port2."
id=20085 trace_id=5 func=resolve_ip6_tuple line=4122 msg="allocate a new session-00000163"
id=20085 trace_id=5 func=vf_ip6_route_input line=1117 msg="find a route: gw-2001:172:16:200::44 via port3 err 0 flags 01000001"
id=20085 trace_id=5 func=ip6_forward line=547 msg="invalid source address, drop"
我在客户端收到的错误是这样的
root@user1-virtual-machine:~# ping6 2001:172:16:200::44
PING 2001:172:16:200::44(2001:172:16:200::44) 56 data bytes
From fe80::926c:acff:fefb:b53b icmp_seq=1 Destination unreachable: Beyond scope of source address
From fe80::926c:acff:fefb:b53b icmp_seq=2 Destination unreachable: Beyond scope of source address
有什么想法为什么会发生这种情况吗?
**路由表
2001:10:1:100::/64 dev ens192 proto kernel metric 256 pref medium
fe80::/64 dev ens160 proto kernel metric 256 pref medium
fe80::/64 dev ens192 proto kernel metric 256 pref medium
default via 2001:10:1:100::2 dev ens192 metric 1024 pref medium