LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 457|回复: 0

ping6自环可以,但ping6别的网卡不行,可是ping这个网卡对应的ipv4就行,为何?

[复制链接]
发表于 2004-6-16 16:15:55 | 显示全部楼层 |阅读模式
我的是FC2,用的是2.6内核,相信ipv6已经打开了,但有个问题,我的情况如下,在打ifconfig时结果显示为
=================================
eth1 Link encap:Ethernet HWaddr 00:05:5D:06:69:AE
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::205:5dff:fe06:69ae/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:9
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:618 (618.0 b)
Interrupt:11 Base address:0xdc00

lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:93 errors:0 dropped:0 overruns:0 frame:0
TX packets:93 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6061 (5.9 Kb) TX bytes:6061 (5.9 Kb)
=========================
这说明我的已经有ipv6了,我打ping6 ::1
[root@Gaolinfeng root]# ping6 ::1 -c 2
PING ::1(::1) 56 data bytes
64 bytes from ::1: icmp_seq=0 ttl=64 time=0.132 ms
64 bytes from ::1: icmp_seq=1 ttl=64 time=0.122 ms

--- ::1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.122/0.127/0.132/0.005 ms, pipe 2
已经通了,说明ipv6已经启用了,可为什么打ping6 fe80::205:5dff:fe06:69ae就不行?我打相对应的ping 192.168.1.1都通了呀?

==================       

这是用ping6的结果如下:

[root@Gaolinfeng root]# ping6 fe80::205:5dff:fe06:69ae
connect: Invalid argument
这个ipv6地址是从ifconfig中查到的。\
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表