ping6 linux,Linux下的ping6

昨天分别试用了一下Linux下和Windows下的IPv6 Ping,发现无法ping Link-local地址,百思不得其解,遂上网google一下,终于找到了原因。

Windows XP下的IPv6地址:

Ethernet adapter Test:

Connection-specific DNS Suffix  . :

IP Address. . . . . . . . . . . . : 192.168.39.137

Subnet Mask . . . . . . . . . . . : 255.255.255.0

IP Address. . . . . . . . . . . . : fe80::21a:a5ff:fec1:1060%6

Default Gateway . . . . . . . . . : 192.168.39.1

fe80::20f:e6ff:fed4:33da%6

注意其中%6表示接口编号。

Linux下的IPv6地址:

eth0      Link encap:Ethernet  HWaddr 00:1C:A0:C5:16:CD

inet addr:192.168.39.226  Bcast:192.168.39.255  Mask:255.255.255.0

inet6 addr: fe80::21c:a0ff:fec5:16cd/64 Scope:Link

UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

RX packets:274560 errors:11 dropped:0 overruns:0 frame:11

TX packets:4651 errors:0 dropped:0 overruns:0 carrier:0

<

你可能感兴趣的:(ping6,linux)