Home >Operation and Maintenance >Linux Operation and Maintenance >How to install network card driver in linux system

How to install network card driver in linux system

王林
王林Original
2020-01-13 09:22:3029892browse

How to install network card driver in linux system

1. Check the network card model

lspci | grep -i ethernet

How to install network card driver in linux system

2. Download the network card driver, pay attention to 32-bit and 64-bit

How to install network card driver in linux system

3. After downloading, copy it to the computer where centos is installed through a USB flash drive. You can only use tools such as USB flash drive and mobile hard disk because there is no Internet connection.

(Free video tutorial recommendation: linux video tutorial)

4. Check the dependent environment

rpm -qa | grep kernel

How to install network card driver in linux system

##5 , Unzip the installation package

tar -zxf  e1000e-3.4.0.2.tar.gz

6. Switch to the root user to enter the decompressed driver folder, and enter the src directory inside.

How to install network card driver in linux system

In the src directory, execute in sequence:

make             ## 编译驱动器源码
make install     ## 安装相应的驱动器程序

No error is reported, enter the directory /lib/modules/3.10.0-693.el7.x86_64/ Under updates/drivers/net/ethernet/intel/e1000e

Copy the e1000e.ko file to the directory /lib/modules/3.10.0-693.el7.x86_64/updates/drivers/net

cp e1000e.ko /lib/modules/3.10.0-693.el7.x86_64/updates/drivers/net

7. Load the driver

depmod -a

8. Test the driver. If no error is reported, the explanation is correct.

modprobe e1000e

Check whether it has been loaded:

lsmod

How to install network card driver in linux system

9. Restart the network service

service network restart

How to install network card driver in linux system

How to install network card driver in linux system

Recommended related articles and tutorials:

linux tutorial

The above is the detailed content of How to install network card driver in linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn