Building and Installation
To build a binary RPM* package of this driver, run ‘rpmbuild -tb
e1000e-<x.x.x>.tar.gz’, where <x.x.x> is the version number for the driver tar
file.
Note: For the build to work properly, the currently running kernel MUST match
the version and configuration of the installed kernel sources. If you have just
recompiled the kernel reboot the system before building.
Note: RPM functionality has only been tested in Red Hat distributions.
lbank_line
-
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//updates/drivers/net/ethernet/intel/e1000e/e1000e.koThe install location listed above is the default location. This may differ
for various Linux distributions. -
Load the module using the modprobe command:
modprobe [parameter=port1_value,port2_value]Make sure that any 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 ethX is the interface name that was shown in dmesg after modprobe:ip address add <IP_address>/ dev ethX
-
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>
Note: For certain distributions like (but not limited to) RedHat Enterprise
Linux 7 and Ubuntu, once the driver is installed the initrd/initramfs file may
need to be updated to prevent the OS loading old versions of the e1000e driver.
The dracut utility may be used on RedHat distributions:
# dracut --force
For Ubuntu:
# update-initramfs -u
找到对应的网卡型号:Intel Corporation Ethernet Connection (2) I219-V [8086:15b8]
找到对应的驱动包:e1000e-3.4.2.1.tar.gz
找到对应的驱动包里面的ReadMe,按照步骤执行就可以了.
下面是我的history:
sudo lspci -knn
1993 cd e1000e-3.4.2.1/
1994 ls
1995 cd src/
1996 ls
1997 sudo make install
1998 sudo rmmod e1000e
1999 sudo modprobe e1000e
完成后会出现网卡已经链接的提示.
驱动下载链接:https://download.csdn.net/download/weixin_45707980/16164995
以上内容我的系统14.04 LTS
————————————————
版权声明:本文为CSDN博主「狼烟的烟」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/achen0001/article/details/83542065