免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2519 | 回复: 2
打印 上一主题 下一主题

奇怪的网卡问题!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-30 17:38 |只看该作者 |倒序浏览

  1. AierM:/home/tmeng# uname -a
  2. Linux AierM 2.6.18-aier #1 SMP Mon Oct 8 22:07:30 CST 2007 i686 GNU/Linux
  3. AierM:/home/tmeng# lspci|grep 'DECchip'
  4. 07:00.0 Ethernet controller: Digital Equipment Corporation DECchip 21142/43 (rev 20)
  5. AierM:/home/tmeng# dmesg |grep 'eth1'
  6. eth1: Digital DS21143 Tulip rev 32 at 00014800, 00:80:4C:35:0D:78, IRQ 11.
  7. eth1: Digital DS21143 Tulip rev 32 at 00014800, 00:80:4C:35:0D:78, IRQ 11.
  8. eth1: Digital DS21143 Tulip rev 32 at 00014800, 00:80:4C:35:0D:78, IRQ 11.
复制代码


在PCMICA插槽中有一块DECchip 21143芯片的网卡;从得到的信息来看,驱动已经加载了;并且所加载的驱动也包含 本芯片型号;如下:

  1. AierM:/home/tmeng# modinfo tulip
  2. filename:       /lib/modules/2.6.18-aier/kernel/drivers/net/tulip/tulip.ko
  3. author:         The Linux Kernel Team
  4. [color=Red]description:    Digital 21*4* Tulip ethernet driver[/color]
  5. license:        GPL
  6. version:        1.1.13-NAPI
  7. vermagic:       2.6.18-aier SMP mod_unload PENTIUMM REGPARM gcc-4.1
  8. depends:
  9. alias:          pci:v00001011d00000009sv*sd*bc*sc*i*
  10. alias:          pci:v00001011d00000019sv*sd*bc*sc*i*
  11. alias:          pci:v000011ADd00000002sv*sd*bc*sc*i*
  12. alias:          pci:v000010D9d00000512sv*sd*bc*sc*i*
  13. alias:          pci:v000010D9d00000531sv*sd*bc*sc*i*
  14. alias:          pci:v0000125Bd00001400sv*sd*bc*sc*i*
  15. alias:          pci:v000011ADd0000C115sv*sd*bc*sc*i*
  16. alias:          pci:v00001317d00000981sv*sd*bc*sc*i*
  17. alias:          pci:v00001317d00000985sv*sd*bc*sc*i*
  18. alias:          pci:v00001317d00001985sv*sd*bc*sc*i*
  19. alias:          pci:v00001317d00009511sv*sd*bc*sc*i*
  20. alias:          pci:v000013D1d0000AB02sv*sd*bc*sc*i*
  21. alias:          pci:v000013D1d0000AB03sv*sd*bc*sc*i*
  22. alias:          pci:v000013D1d0000AB08sv*sd*bc*sc*i*
  23. alias:          pci:v0000104Ad00000981sv*sd*bc*sc*i*
  24. alias:          pci:v0000104Ad00002774sv*sd*bc*sc*i*
  25. alias:          pci:v00001259d0000A120sv*sd*bc*sc*i*
  26. alias:          pci:v000011F6d00009881sv*sd*bc*sc*i*
  27. alias:          pci:v00008086d00000039sv*sd*bc*sc*i*
  28. alias:          pci:v00001282d00009100sv*sd*bc*sc*i*
  29. alias:          pci:v00001282d00009102sv*sd*bc*sc*i*
  30. alias:          pci:v00001113d00001216sv*sd*bc*sc*i*
  31. alias:          pci:v00001113d00001217sv*sd*bc*sc*i*
  32. alias:          pci:v00001113d00009511sv*sd*bc*sc*i*
  33. alias:          pci:v00001186d00001541sv*sd*bc*sc*i*
  34. alias:          pci:v00001186d00001561sv*sd*bc*sc*i*
  35. alias:          pci:v00001186d00001591sv*sd*bc*sc*i*
  36. alias:          pci:v000014F1d00001803sv*sd*bc*sc*i*
  37. alias:          pci:v00001626d00008410sv*sd*bc*sc*i*
  38. alias:          pci:v00001737d0000AB09sv*sd*bc*sc*i*
  39. alias:          pci:v00001737d0000AB08sv*sd*bc*sc*i*
  40. alias:          pci:v000017B3d0000AB08sv*sd*bc*sc*i*
  41. alias:          pci:v000010B7d00009300sv*sd*bc*sc*i*
  42. alias:          pci:v000014EAd0000AB08sv*sd*bc*sc*i*
  43. alias:          pci:v00001414d00000002sv*sd*bc*sc*i*
  44. srcversion:     04C5C182C6E93DE91DBE155
  45. parm:           full_duplex:array of int
  46. parm:           options:array of int
  47. parm:           csr0:int
  48. parm:           rx_copybreak:int
  49. parm:           max_interrupt_work:int
  50. parm:           tulip_debug:int
复制代码


但问题还是意外的发生了,找不到所标识的eth1网卡,如下:

  1. AierM:/home/tmeng# ifconfig eth1
  2. eth1: error fetching interface information: Device not found
  3. AierM:/home/tmeng# ifconfig
  4. eth0      Link encap:Ethernet  HWaddr 00:09:6B:CD:CF:21
  5.           inet addr:192.168.133.128  Bcast:192.168.133.255  Mask:255.255.255.0
  6.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  7.           RX packets:8750 errors:0 dropped:0 overruns:0 frame:0
  8.           TX packets:10045 errors:0 dropped:0 overruns:0 carrier:0
  9.           collisions:0 txqueuelen:100
  10.           RX bytes:6295737 (6.0 MiB)  TX bytes:1576558 (1.5 MiB)
  11.           Base address:0x8000 Memory:c0220000-c0240000

  12. lo        Link encap:Local Loopback
  13.           inet addr:127.0.0.1  Mask:255.0.0.0
  14.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  15.           RX packets:24 errors:0 dropped:0 overruns:0 frame:0
  16.           TX packets:24 errors:0 dropped:0 overruns:0 carrier:0
  17.           collisions:0 txqueuelen:0
  18.           RX bytes:1352 (1.3 KiB)  TX bytes:1352 (1.3 KiB)

  19. AierM:/home/tmeng# ifconfig eth1 up
  20. eth1: ERROR while getting interface flags: 没有那个设备
复制代码

上面输出的eth0为集成的板载网卡,e1000的,可以看到MAC地址与eth1是不同的。

在插入网卡或重加载模块的过程中可以看到:

  1. May 30 17:36:21 AierM kernel: Linux Tulip driver version 1.1.13-NAPI (May 11, 2002)
  2. May 30 17:36:21 AierM kernel: tulip0:  EEPROM default media type Autosense.
  3. May 30 17:36:21 AierM kernel: tulip0:  Index #0 - Media 10baseT (#0) described by a 21142 Serial PHY (2) block.
  4. May 30 17:36:21 AierM kernel: tulip0:  Index #1 - Media 10baseT-FDX (#4) described by a 21142 Serial PHY (2) block.
  5. May 30 17:36:21 AierM kernel: tulip0:  Index #2 - Media 100baseTx (#3) described by a 21143 SYM PHY (4) block.
  6. May 30 17:36:21 AierM kernel: tulip0:  Index #3 - Media 100baseTx-FDX (#5) described by a 21143 SYM PHY (4) block.
  7. May 30 17:36:21 AierM kernel: eth1: Digital DS21143 Tulip rev 32 at 00014800, 00:80:4C:35:0D:78, IRQ 11.
复制代码

上面显示eth1已加载,芯片型号和MAC地址均无误,可ifconfig输出就是没有,真是无比郁闷 :(:(:(

论坛徽章:
0
2 [报告]
发表于 2008-05-31 09:54 |只看该作者
真是邪门了,百般无耐,处到翻看,Google无数,均无答案

终查看/pro/net/dev ,有些线索,如下:

  1. AierM:/home/tmeng# cat /proc/net/dev
  2. Inter-|   Receive                                                |  Transmit
  3. face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
  4.     lo:    1252      22    0    0    0     0          0         0     1252      22    0    0    0     0       0          0
  5.   imq0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  6.   imq1:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  7.   eth0: 7012966    9581    0    0    0     0          0        18  1664289   10079    0    0    0     0       0          0
  8. irda0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
  9.   eth3:       0       0    9    0    0     0          0         0        0       0    0    0    0     0       0          0
复制代码


乖乖,不是有个eth3吗,赶紧 up先,如是那朵出色的tulip终于出来了,如:

  1. AierM:/home/tmeng# ifconfig eth3 up
  2. AierM:/home/tmeng# ifconfig eth3
  3. eth3      Link encap:Ethernet  HWaddr 00:80:4C:35:0D:78
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:0 errors:9 dropped:0 overruns:0 frame:0
  6.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:1000
  8.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  9.           Interrupt:11 Base address:0x4800
复制代码


但比较让我郁闷是的,为什么不是默认的eth1而是eth3呢?继续找找看,是什么原因

论坛徽章:
0
3 [报告]
发表于 2008-05-31 14:32 |只看该作者
搞定了,在/etc/udev/rules.d/z25_persistent-net.rules配置文件记录了插入的网卡MAC地址和标识符,把不要的删掉,将需eth3改为eth1重启,即可

[ 本帖最后由 kevin.tan 于 2008-6-2 11:38 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP