Step 1. 查询该笔记本网卡型号,我查出的是intel的网卡e1000e ,直接 上网找 Linux系统下的驱动源码,然后直接编译安装 就ok。
Step 2. 找到驱动下载地址【http://www.intel.com/content/www/us/en/support/network-and-i-o/ethernet-products/000005480.html?wapkw=e1000e#over_e1e】
Step 3.Building and installation
To build a binary RPM* package of this driver, run "rpmbuild -tb e1000e.tar.gz".
|
-
Move the base driver tar file to the directory of your choice. For example, use "/home/username/e1000e" or "/usr/local/src/e1000e".
-
Untar/unzip the archive, where <x.x.x> is the version number for the driver tar file:
tar zxf e1000e-<x.x.x>.tar.gz
-
Change to the driver src directory, where <x.x.x> is the version number for the driver tar:
cd e1000e-<x.x.x>/src/
-
Compile the driver module:
# make install
The binary will be installed as:
/lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000e/e1000e.[k]o
The install location listed above is the default location. This may differ for various Linux distributions.
-
Load the module using either the insmod or modprobe command:
modprobe e1000e insmod e1000e
Note that for 2.6 kernels the insmod command can be used if the full path to the driver module is specified. For example:
insmod /lib/modules/<KERNEL VERSION>/kernel/drivers/net/e1000e/e1000e.ko
With 2.6 based kernels also make sure that older e1000e drivers are removed from the kernel, before loading the new module:
rmmod e1000e; modprobe e1000e
-
Assign an IP address to the interface by entering the following, where <x> is the interface number:
ifconfig eth<x> <IP_address>
-
Verify that the interface works. Enter the following, where <IP_address> is the IP address for another machine on the same subnet as the interface that is being tested:
ping <IP_address>
|