LinuxSir.cn,穿越时空的Linuxsir!

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

有块网卡不能识别啊 请帮忙看看(已解决 谢谢)

[复制链接]
发表于 2009-4-27 18:04:45 | 显示全部楼层 |阅读模式
两块pcnet32的网卡只识别了一个
另一个不能识别 清空/etc/udev/rules.d/ net相关
重启机器也不能解决

大家帮帮忙,看看这是什么原因啊

# lspci

  1. 00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host brid
  2. ge (rev 01)

  3. 00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge
  4. (rev 01)

  5. 00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)

  6. 00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)

  7. 00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)

  8. 00:07.7 System peripheral: VMware Inc Virtual Machine Communication Interfac
  9. e (rev 10)

  10. 00:0f.0 VGA compatible controller: VMware Inc Abstract SVGA II Adapter

  11. 00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fus
  12. ion-MPT Dual Ultra320 SCSI (rev 01)

  13. 02:00.0 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB

  14. 02:01.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LA
  15. NCE] (rev 10)

  16. 02:02.0 Multimedia audio controller: Ensoniq ES1371 [AudioPCI-97] (rev 02)

  17. 02:03.0 USB Controller: VMware Inc Abstract USB2 EHCI Controller

  18. 02:05.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LA
  19. NCE] (rev 10)
复制代码

# lsmod

  1. Module                  Size  Used by

  2. ipv6                  196264  12

  3. vmblock                10276  3

  4. snd_seq_midi            5984  0

  5. snd_seq_midi_event      5824  1 snd_seq_midi

  6. snd_seq                40228  2 snd_seq_midi,snd_seq_midi_event

  7. snd_pcm_oss            20064  0

  8. snd_mixer_oss          12352  1 snd_pcm_oss

  9. vmhgfs                 31232  2

  10. snd_ens1371            17188  0

  11. snd_rawmidi            16928  2 snd_seq_midi,snd_ens1371

  12. snd_seq_device          6028  3 snd_seq_midi,snd_seq,snd_rawmidi

  13. snd_ac97_codec         88800  1 snd_ens1371

  14. ac97_bus                1856  1 snd_ac97_codec

  15. pcnet32                28788  0

  16. psmouse                36560  0

  17. 8250_pnp               14208  0

  18. snd_pcm                50564  3 snd_pcm_oss,snd_ens1371,snd_ac97_codec

  19. mii                     4480  1 pcnet32

  20. 8250                   26180  1 8250_pnp

  21. snd_timer              16456  2 snd_seq,snd_pcm

  22. serial_core            15744  1 8250

  23. parport_pc             20244  0

  24. vmxnet                 12672  0

  25. snd                    40760  9 snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ens137
  26. 1,snd_rawmidi,snd_seq_device,snd_ac97_codec,snd_pcm,snd_timer

  27. ehci_hcd               29452  0

  28. uhci_hcd               19344  0

  29. thermal                15388  0

  30. soundcore               5576  1 snd

  31. usbcore                97444  2 ehci_hcd,uhci_hcd

  32. snd_page_alloc          7624  1 snd_pcm

  33. processor              39084  1 thermal

  34. intel_agp              22972  1

  35. container               3648  0

  36. button                  6160  0

  37. ac                      3392  0

  38. agpgart                26356  1 intel_agp

  39. thermal_sys             8936  2 thermal,processor
复制代码


# cat /etc/udev/rules.d/70-persistent-net.rules

  1.    # PCI device 0x1022:0x2000 (pcnet32)

  2. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:c5:
  3. 3b:e2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

  4.     # PCI device 0x1022:0x2000 (vmxnet)

  5. SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:c5:
  6. 3b:ec", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"
复制代码


#ifconfig -a
[/code]
eth0      Link encap:Ethernet  HWaddr 00:0c:29:c5:3b:e2  

          inet addr:192.168.65.3  Bcast:192.168.65.255  Mask:255.255.255.0

          inet6 addr: fe80::20c:29ff:fec5:3be2/64 Scopeink

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:55651 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:1000

          RX bytes:17967690 (17.1 MiB)  TX bytes:2394738 (2.2 MiB)

          Interrupt:19 Base address:0x2024

eth2      Link encap:Ethernet  HWaddr 00:0c:29:c5:3b:ec  

          BROADCAST MULTICAST  MTU:1500  Metric:1

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

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

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

          Interrupt:19 Base address:0x20a4

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:0 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
[/code]
发表于 2009-4-27 21:55:56 | 显示全部楼层
你那个都识别出来了。网卡驱动没有问题。
这个文件有没有/etc/init.d/eth2?
如果么样,你需要在root下:做个eth2的连接。过程和eth0一样。
回复 支持 反对

使用道具 举报

发表于 2009-4-27 22:43:31 | 显示全部楼层
ifconfig eth1[2] up
回复 支持 反对

使用道具 举报

发表于 2009-4-28 07:30:06 | 显示全部楼层
Post by blackwhite;1980299
你那个都识别出来了。网卡驱动没有问题。
这个文件有没有/etc/init.d/eth2?
如果么样,你需要在root下:做个eth2的连接。过程和eth0一样。

对的。
一般是 ln -sv /etc/init.d/net.lo /etc/init.d/net.eth1

要查看是eth0还是eth1,

cat /etc/udev/rules.d/70-persistent-net.rules

网卡归udev管,网卡有几块,就会在 70-persistent-net.rules 文件里显示几块。

偶尔碰上换网卡的情况,将此文件删除,让其再自动生成一个就行。
回复 支持 反对

使用道具 举报

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

本版积分规则

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