MAC OS

检查IPv6配置

在终端窗口运行如下命令以检查IPv6是否已激活:

ping6 -c5 ::1

如果是以下结果(或类似):

$ ping6 -c5 ::1
PING6(56=40+8+8 bytes) ::1 --> ::1
16 bytes from ::1, icmp_seq=0 hlim=64 time=0.168 ms
16 bytes from ::1, icmp_seq=1 hlim=64 time=0.156 ms
16 bytes from ::1, icmp_seq=2 hlim=64 time=0.154 ms
16 bytes from ::1, icmp_seq=3 hlim=64 time=0.237 ms
16 bytes from ::1, icmp_seq=4 hlim=64 time=0.164 ms
--- localhost ping6 statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0.154/0.176/0.237 ms

这意味着IPv6已经安装正确。你应该能看到"5 packets received"。

如果系统不能识别以上命令(或者返回错误信息),请按下一节的说明操作。

如何安装IPv6

V10.2(Jaguar)以后的Mac OS都捆绑了IPv6,而Mac OS 9则还没有任何的IPv6支持。

按如下说明在OS X上激活IPv6:

打开终端窗口。输入 /sbin/ifconfig -a 列出所有接口。你应该能看到类似这样的信息:

en0: flags=8863 mtu 1500
inet6 fe80::203:93ff:fe67:80b2%en0 prefixlen 64 scopeid 0x4
ether 00:03:93:67:80:b2
inet 192.168.1.101 netmask 0xffffff00 broadcast 192.168.1.255
media: autoselect (none) status: active

找到标记 status: active 的那个接口,通常会是en0。如果不是,切记在后续的操作中用实际接口替换。

输入:

sudo ip6config start-v6 en0; sudo ip6config start-stf en0

这样,IPv6就安装好了,请按照本页上部的说明检查它是否工作正常。

The IPv6 Day is Organized and Supported by:



















Other Organizations:






webmaster

$StopWatch