IPv6 Mac OS X 10.6 ping失败

时间:2011-09-09 07:56:16

标签: macos osx-snow-leopard ip ipv6 ping

$ ifconfig
...
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether 00:16:cb:94:1a:79 
inet6 fe80::216:cbff:fe94:1a79%en0 prefixlen 64 scopeid 0x4 
inet 192.168.163.200 netmask 0xfffffe00 broadcast 192.168.163.255
media: autoselect (100baseTX <full-duplex,flow-control>)
status: active
...

因此,您可以看到我的计算机在fe80::216:cbff:fe94:1a79界面上有en0地址。此外,

$ ping6 fe80::216:cbff:fe94:1a79%en0
PING6(56=40+8+8 bytes) fe80::216:cbff:fe94:1a79%en0 --> fe80::216:cbff:fe94:1a79%en0
16 bytes from fe80::216:cbff:fe94:1a79%en0, icmp_seq=0 hlim=64 time=0.153 ms
^C
--- fe80::216:cbff:fe94:1a79%en0 ping6 statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.153/0.153/0.153/0.000 ms

$

但为什么

$ ping6 fe80::216:cbff:fe94:1a79
ping6: UDP connect: No route to host
$ 

失败?是否可以在不键入接口名称%en0

的情况下访问远程计算机

这可能是一个非常基本的问题,因为我不是一个强大的IPv6用户。

1 个答案:

答案 0 :(得分:5)

fe80::地址是链接本地的,这意味着该地址仅对该特定适配器是唯一的。每个适配器都可以通过ping您提供的地址fe80::216:cbff:fe94:1a79来引用完全不同的计算机。

http://en.wikipedia.org/wiki/Link-local_address