works with version e1000e-3.4.0.2.tar.gz
[root@localhost e1000e-all]# lspci |grep "net"
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) (rev 10)
e1000e.ko.xz.jpg
e1000e-3.4.0.2.tar.gz.jpg
[root@localhost modules]# pwd
/lib/modules
[root@localhost modules]#
[root@localhost modules]# find . -type f -name "e1000e*"
./3.10.0-693.el7.x86_64/kernel/drivers/net/ethernet/intel/e1000/e1000e.ko
./3.10.0-693.el7.x86_64/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko
./3.10.0-693.el7.x86_64/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko.xz_
./3.10.0-693.el7.x86_64/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko.xz
./3.10.0-1062.4.1.el7.x86_64/kernel/drivers/net/ethernet/intel/e1000e/e1000e.ko.xz
[root@localhost modules]#
[root@localhost modules]# cat /etc/rc.local
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
touch /var/lock/subsys/local
modprobe e1000e
insmod /etc/e1000e.ko
ifconfig em1 10.80.64.174 netmask 255.255.255.0 up
route add default gw 10.80.64.1
#echo > /usr/local/sbin/.www
[root@localhost modules]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@localhost modules]#
[root@localhost modules]# uname -a
Linux localhost.localdomain 3.10.0-1062.4.1.el7.x86_64 #1 SMP Fri Oct 18 17:15:30 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
阅读(987) | 评论(0) | 转发(0) |