+ -
当前位置:首页 → 问答吧 → eepro100.ko模块载入,可为何netconfig->ifconfig eth0->显示无此驱动

eepro100.ko模块载入,可为何netconfig->ifconfig eth0->显示无此驱动

时间:2007-09-22

来源:互联网

modprobe 载入了eepro100.ko以及依赖模块mii.ko,modprobe -l 也显示模块已经载入了,之后进行了如题的步骤,不知为何?
网卡:Intel(R) Pro/100 VE

作者: z.10111   发布时间: 2007-09-22

模块加入之后,ifconfig -a能看到设备了.

作者: fredricktoy   发布时间: 2007-09-22

网卡不一定是 eth0,可以用 /sbin/ifconfig -a 查看具体有哪些网卡被系统识别。
P.S. 为何不用内核中的 e100 驱动?

作者: sssslang   发布时间: 2007-09-22

ifconfig -a只显示出lo回路

作者: z.10111   发布时间: 2007-09-22

lspci
00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
00:01.0 PCI bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL PCI Express Root Port (rev 04)
00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3)
00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
01:08.0 Ethernet controller: Intel Corporation 82562ET/EZ/GT/GZ - PRO/100 VE (LOM) Ethernet Controller (rev 03)
06:00.0 VGA compatible controller: nVidia Corporation NV36 [GeForce PCX 5750] (rev a2)

作者: z.10111   发布时间: 2007-09-22

ifconfig -a
lo Link encap:Local 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)

作者: z.10111   发布时间: 2007-09-22

试一下e100这个模块

作者: fredricktoy   发布时间: 2007-09-22

安装e100-3.5.17驱动时,make install 显示linux/config.h无此文件或目录,我打开e100.c文件看出错行,原来是代码第一行的#include <linux/config.h>包含头文件出错了,待解?

作者: z.10111   发布时间: 2007-09-23

e100这个模块有啊, 不用再去编译新的啦.

作者: fredricktoy   发布时间: 2007-09-23

fredricktoy兄:)
每次重启后,都得modprobe e100后,ifconfig -a才能显示出eth0,反之的话只显示lo。好像modprobe e100重启后就失效了?

作者: z.10111   发布时间: 2007-09-23

那当然啦. 在/etc/rc.d/rc.local里写/usr/sbin/modprobe e100吧.这样就每次启动帮你运行了.

作者: fredricktoy   发布时间: 2007-09-23

:)可以了,谢谢了。
eth0 Link encap:Ethernet HWaddr 00:11:2F:7F1:65
inet addr:59.49.33.170 Bcast:255.255.255.255 Mask:255.255.252.0
inet6 addr: fe80::211:2fff:fe7f:d165/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1557 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:113194 (110.5 KiB) TX bytes:1708 (1.6 KiB)

lo Link encap:Local 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)


唉~不过还得麻烦麻烦你。
我在win下,IP和DNS都是自动获得的。所以我在/etc/rc.d/rc.inet1.conf文件中,我只填了use_dhcp[0]="yes"这项,可是不管ping域名,还是IP,都ping不通。。。。。。

作者: z.10111   发布时间: 2007-09-24

域名不通或许是/etc/resolv.conf没有配置好,给你个做参考
search
nameserver 202.96.209.5
nameserver 202.96.209.133

你确定你的网络配置没有什么问题吗?
/sbin/netconfig再好好调整调整

作者: fredricktoy   发布时间: 2007-09-24

还是上不了网,这是我的resolv.conf文件内容:
# Generated by dhcpcd for interface eth0
nameserver 219.146.0.130
nameserver 219.150.32.132
nameserver 219.150.150.150
nameserver 61.134.1.9
nameserver 219.150.0.146
内容是自动生成的,修改之后,又会恢复成上面的内容~

作者: z.10111   发布时间: 2007-09-25

dhcp那部分自己好好再折腾一下, 折不好就不要用dhcp了, 呵呵。

作者: fredricktoy   发布时间: 2007-09-26

:-)算你狠,我再试试吧

作者: z.10111   发布时间: 2007-09-26