LinuxSir.cn,穿越时空的Linuxsir!

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

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

[复制链接]
发表于 2004-6-12 12:13:21 | 显示全部楼层 |阅读模式
我的是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都通了呀?
 楼主| 发表于 2004-6-12 12:15:00 | 显示全部楼层
这是用ping6的结果如下:

[root@Gaolinfeng root]# ping6  fe80::205:5dff:fe06:69ae
connect: Invalid argument
这个ipv6地址是从ifconfig中查到的。
 楼主| 发表于 2004-6-16 10:45:19 | 显示全部楼层
这个问题有人回复我吗?
发表于 2004-6-16 15:16:27 | 显示全部楼层
最初由 gao_linfeng 发表
这个问题有人回复我吗?

好像这里没人能帮你 :sorry ~~~
转至基础区看看如何?
发表于 2004-6-16 22:36:00 | 显示全部楼层
大约没有对ipv6进行设置. 呵呵, 这个地址不是你的ipv6地址.
发表于 2004-6-16 22:38:45 | 显示全部楼层
我同意楼上说的,现在没有ipv6的东西。都是32位的,没有64位的。
发表于 2008-2-18 19:09:07 | 显示全部楼层
用ping6时,如果目的地址为链路本地地址(FE80::),需要指定网络接口,如:
ping6 -I eth0 fe80**
回复 支持 反对

使用道具 举报

发表于 2008-11-18 16:57:58 | 显示全部楼层
哈哈,这可是04年的帖哟。
不过还是对我有帮助。谢谢。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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