Centos安装网卡驱动make时报错Kernel header files not in any of the expected locations.解决办法之一

发布时间 2023-10-08 08:59:56作者: emanlee

 

 

Centos安装I219-LM网卡驱动   https://www.cnblogs.com/marixh/p/16927623.html

查询适合我的网卡命令:

1
2
[root@192 src]# lspci|grep net
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (11) I219-LM

发现适合我的版本是Intel Corporation Ethernet Connection (11) I219-LM,intel下载位置 可以通用的e1000e网卡驱动,

具体步骤:(参考read me,xxx是e1000e的版本)

在/usr/local/src/中新建文件夹e1000e,并将下载好的tar.gz文件放在该路径下。

解压:tar zxf e1000e-<x.x.x>.tar.gz
进入:cd e1000e-<x.x.x>/src/
编译:make install
 
激活模块,最好加入开机启动
modprobe e1000e

=====================================================

 

https://blog.csdn.net/qq_43530066/article/details/129122611

https://blog.csdn.net/bandaoyu/article/details/122072822