当前位置: 技术问答>linux和unix
【网卡】的问题——Linux下如何识别网卡
来源: 互联网 发布时间:2015-11-27
本文导语: 我的网卡是集成在主板上的,板子是华硕865PE的,集成卡是3Com的,按照华硕网站上面的说法去操作,没有任何提示出错,可是还是不能认识该网卡,昨天用了一个PCI的intel82559的卡,完全正常识别、加载。哪位有什么...
我的网卡是集成在主板上的,板子是华硕865PE的,集成卡是3Com的,按照华硕网站上面的说法去操作,没有任何提示出错,可是还是不能认识该网卡,昨天用了一个PCI的intel82559的卡,完全正常识别、加载。哪位有什么办法帮我把3Com的卡搞定?
下面是华硕网站上面的说法:
3Com Gigabit NIC (3C2000) Driver Readme Version A02
Copyright (c) 2003 3Com Corporation
This file describes the 3Com Gigabit NIC (3C2000) driver for Linux.
Loading the driver
------------------
1) Make sure that the kernel source is installed in /usr/src/linux
or /usr/src/linux-2.4.
2) Copy the file /Linux/3c2000.tar.gz from the 3Com driver CD to
your hard drive.
3) Change to the directory containing 3c2000.tar.gz
4) Type 'tar zxvf 3c2000.tar.gz'
5) Type 'cd 3c2000'
Note: on SuSE systems since 7.1, you will have to execute the
following commands before running make:
cp /boot/vmlinuz.version.h /usr/src/linux/include/linux/version.h
cp /boot/vmlinuz.autoconf.h /usr/src/linux/include/linux/autoconf.h
For more details se http://sdb.suse.de/en/sdb/html/mwalter_kernel_24.html
6) Type 'make load' to load the driver.
Alternatively, you may type the following to load the driver:
insmod 3c2000.o
Something like the following will be added to /var/log/messages:
Jan 22 19:31:19 localhost kernel: 3C2000: 3Com Gigabit NIC Driver Version A08
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 3Com Corporation.
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 Marvell.
Jan 22 19:31:19 localhost kernel: eth0: 3Com Gigabit NIC (3C2000)
Depending on your configuration, the OS may then automatically bring the
interface up and request an address from a DHCP server. If it does not,
bring the interface up with the command:
ifconfig eth0 up
You may have to substitue 'eth0' for your actual interface if you have
more than one ethernet NIC installed.
If your system is not configured for DHCP, you can assign an IP address
with the command:
ifconfig eth0 a.b.c.d
Where a.b.c.d is the IP address that you wish to use. Again, eth0 may
be different depending on your system configuration.
Configuring the Driver
------------------------
The 3C2000 driver supports various options, which can be supplied
as command line arguments to the 'insmod' command or in the
/etc/modules.conf file. You may specify more than one option.
Unless otherwise stated, all settings take the form of:
=value [,value...]
If you use the modules.conf file to load the driver at boot time,
include the word "options" when configuring the driver.
For example:
options 3c2000 DupCap_A=Full
If you use command line 'insmod', do not include the word "option"
when configuring the driver.
For example:
insmod 3c2000.o DupCap_A=Full
The following options are supported:
OPTION: Speed_A
Selects the speed of Port A of the NIC.
"Auto" - Automatic Resolution
"10" - 10MBPS
"100" - 100MBPS
"1000" - 1GIG
OPTION: DupCap_A
Selects the duplex capabilities of Port A of the NIC.
"Full" - Full Duplex
"Half" - Half Duplex
"Both" - Both Half Duplex & Full Duplex
To unload the driver
--------------------
1) Type 'ifconfig eth0 down' (Substitute you actual interface for 'eth0')
2) Type 'rmmod 3c2000'
下面是华硕网站上面的说法:
3Com Gigabit NIC (3C2000) Driver Readme Version A02
Copyright (c) 2003 3Com Corporation
This file describes the 3Com Gigabit NIC (3C2000) driver for Linux.
Loading the driver
------------------
1) Make sure that the kernel source is installed in /usr/src/linux
or /usr/src/linux-2.4.
2) Copy the file /Linux/3c2000.tar.gz from the 3Com driver CD to
your hard drive.
3) Change to the directory containing 3c2000.tar.gz
4) Type 'tar zxvf 3c2000.tar.gz'
5) Type 'cd 3c2000'
Note: on SuSE systems since 7.1, you will have to execute the
following commands before running make:
cp /boot/vmlinuz.version.h /usr/src/linux/include/linux/version.h
cp /boot/vmlinuz.autoconf.h /usr/src/linux/include/linux/autoconf.h
For more details se http://sdb.suse.de/en/sdb/html/mwalter_kernel_24.html
6) Type 'make load' to load the driver.
Alternatively, you may type the following to load the driver:
insmod 3c2000.o
Something like the following will be added to /var/log/messages:
Jan 22 19:31:19 localhost kernel: 3C2000: 3Com Gigabit NIC Driver Version A08
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 3Com Corporation.
Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 Marvell.
Jan 22 19:31:19 localhost kernel: eth0: 3Com Gigabit NIC (3C2000)
Depending on your configuration, the OS may then automatically bring the
interface up and request an address from a DHCP server. If it does not,
bring the interface up with the command:
ifconfig eth0 up
You may have to substitue 'eth0' for your actual interface if you have
more than one ethernet NIC installed.
If your system is not configured for DHCP, you can assign an IP address
with the command:
ifconfig eth0 a.b.c.d
Where a.b.c.d is the IP address that you wish to use. Again, eth0 may
be different depending on your system configuration.
Configuring the Driver
------------------------
The 3C2000 driver supports various options, which can be supplied
as command line arguments to the 'insmod' command or in the
/etc/modules.conf file. You may specify more than one option.
Unless otherwise stated, all settings take the form of:
=value [,value...]
If you use the modules.conf file to load the driver at boot time,
include the word "options" when configuring the driver.
For example:
options 3c2000 DupCap_A=Full
If you use command line 'insmod', do not include the word "option"
when configuring the driver.
For example:
insmod 3c2000.o DupCap_A=Full
The following options are supported:
OPTION: Speed_A
Selects the speed of Port A of the NIC.
"Auto" - Automatic Resolution
"10" - 10MBPS
"100" - 100MBPS
"1000" - 1GIG
OPTION: DupCap_A
Selects the duplex capabilities of Port A of the NIC.
"Full" - Full Duplex
"Half" - Half Duplex
"Both" - Both Half Duplex & Full Duplex
To unload the driver
--------------------
1) Type 'ifconfig eth0 down' (Substitute you actual interface for 'eth0')
2) Type 'rmmod 3c2000'
|
第一句是查找模块e1000,第二句是加载模块e1000
|
lspci -v
会显示这个设备的号,XXXX:XXXX
安装这个号来找驱动
会显示这个设备的号,XXXX:XXXX
安装这个号来找驱动
|
显示unknown device说明硬件数据库里面没有这片网卡的信息
lspci -?我记不太清了是v、b还是其他的,有个参数是能显示出这个设备号
lspci -?我记不太清了是v、b还是其他的,有个参数是能显示出这个设备号
|
ls mod | grep e1000
modprobe e1000
modprobe e1000
|
1 你的内核的版本是2.4吗?
2 把2楼的命令运行一下,应该就可以了。如果不明白命令是什么意思到google或baidu搜索。
2 把2楼的命令运行一下,应该就可以了。如果不明白命令是什么意思到google或baidu搜索。
|
执行lspci
看看有没有找到这个网卡
看看有没有找到这个网卡
|
二楼的意思是插入网卡驱动的模块