LinuxSir.cn,穿越时空的Linuxsir!

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

请教:mii-tool: Bad address?

[复制链接]
发表于 2006-2-6 10:40:54 | 显示全部楼层 |阅读模式
有一台主机的两块集成网卡,有一块突然出现问题,不能连接:

  1. # mii-tool
  2. eth0: negotiated 100baseTx-FD, link ok
  3. SIOCGMIIPHY on 'eth1' failed: Bad address

  4. # ifconfig
  5. eth0      Link encap:Ethernet  HWaddr 00:13:20:7D:29:22  
  6.           inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
  7.           inet6 addr: fe80::213:20ff:fe7d:2922/64 Scope:Link
  8.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  9.           RX packets:400536 errors:0 dropped:0 overruns:0 frame:0
  10.           TX packets:552397 errors:0 dropped:0 overruns:0 carrier:0
  11.           collisions:0 txqueuelen:1000
  12.           RX bytes:47071055 (44.8 MiB)  TX bytes:166365558 (158.6 MiB)

  13. eth1      Link encap:Ethernet  HWaddr 00:13:20:7D:29:21  
  14.           inet addr:192.168.100.9  Bcast:192.168.100.255  Mask:255.255.255.0
  15.           inet6 addr: fe80::213:20ff:fe7d:2921/64 Scope:Link
  16.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  17.           RX packets:439877 errors:0 dropped:0 overruns:0 frame:0
  18.           TX packets:280367 errors:0 dropped:0 overruns:0 carrier:0
  19.           collisions:0 txqueuelen:1000
  20.           RX bytes:78168895 (74.5 MiB)  TX bytes:23859906 (22.7 MiB)
  21.           Interrupt:177 Memory:ff720000-0

  22. lo        Link encap:Local Loopback  
  23.           inet addr:127.0.0.1  Mask:255.0.0.0
  24.           inet6 addr: ::1/128 Scope:Host
  25.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  26.           RX packets:196 errors:0 dropped:0 overruns:0 frame:0
  27.           TX packets:196 errors:0 dropped:0 overruns:0 carrier:0
  28.           collisions:0 txqueuelen:0
  29.           RX bytes:12069 (11.7 KiB)  TX bytes:12069 (11.7 KiB)
复制代码


我运行 ifconfig eth1 down/ifconfig eth1 up,开始时连续几次都是 eth1 一启动就当机,但后来突然又可以了,并且还可以连接了,可以 ping 等,但 mii-tool 仍然显示 Bad address。请问这是什么原因呢?

谢谢


  1. # dmesg
  2. ...
  3. NET: Registered protocol family 10
  4. Disabled Privacy Extensions on device ffffffff803e8620(lo)
  5. IPv6 over IPv4 tunneling driver
  6. divert: not allocating divert_blk for non-ethernet device sit0
  7. eth0: no IPv6 routers present
  8. eth1: no IPv6 routers present
  9. eth1: network connection down
  10. eth1: network connection up using port A
  11.     speed:           100
  12.     autonegotiation: yes
  13.     duplex mode:     full
  14.     flowctrl:        none
  15.     irq moderation:  disabled
  16.     tcp offload:     enabled
  17.     scatter-gather:  enabled
  18.     tx-checksum:     enabled
  19.     rx-checksum:     enabled
  20. eth1: no IPv6 routers present
  21. ip_tables: (C) 2000-2002 Netfilter core team
  22. ip_conntrack version 2.1 (4076 buckets, 32608 max) - 456 bytes per conntrack
  23. audit(1139111322.491:0): avc:  denied  { execute } for  pid=3243 path=/etc/ld.so.cache dev=dm-0 ino=5261420 scontext=root:system_r:ntpd_t tcontext=system_u:object_r:ld_so_cache_t tclass=file
复制代码
发表于 2006-2-6 10:53:51 | 显示全部楼层
我更惨:
SIOCGMIIPHY on 'eth0' failed: Bad address
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found

eth0 是千兆网卡。eth1是百兆网卡。不过是nvnet,也许不正规吧。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-6 11:56:45 | 显示全部楼层
nvnet 是什么东东呀:ask
回复 支持 反对

使用道具 举报

发表于 2006-2-6 12:51:22 | 显示全部楼层
nvidia 芯片驱动的网卡。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-2-7 09:39:55 | 显示全部楼层
但是我这里两块网卡都是集成的,应该是一样的呀?
回复 支持 反对

使用道具 举报

发表于 2006-2-7 12:58:21 | 显示全部楼层
我的也是两块继承的。呵呵。。可能不一样。
回复 支持 反对

使用道具 举报

发表于 2006-2-7 14:17:07 | 显示全部楼层
这些可能是因为你们的网络数率识别不对造成的.
mii-tool -r
回复 支持 反对

使用道具 举报

发表于 2006-2-7 15:39:20 | 显示全部楼层
# mii-tool -r
SIOCGMIIPHY on 'eth0' failed: Bad address
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found

#lsmod
Module                  Size  Used by
mii                     5504  0

似乎没用上mii这个东西。我的网卡不支持?
回复 支持 反对

使用道具 举报

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

本版积分规则

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