服务器linux安装后没有网卡驱动,解决安装Linux之后没有网卡驱动
新买的一台HP台式机(HP EliteDesk 800 G2 TWR)安装Linux当做测试环境使用,安装完成之后发现没有网卡.
操作系统:Red Hat Enterprise Linux Server release 6.6 (Santiago)
lspci查看有网卡的信息如下所示[root@saashr-new ~]# lspci | grep 'Ethernet controller'
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-LM (rev 31)
可以看到是Intel的,于是在官网上查找相关驱动手动安装 版本I219-LM
此次下载的是最新版本 e1000e-3.3.4.tar.gz
主要是安装,解压之后查看README里面有详细步骤
1. Move the base driver tar file to the directory of your choice. For
example, use '/home/username/e1000e' or '/usr/local/src/e1000e'.
2. Untar/unzip the archive, where is the version number for the
driver tar file:
tar zxf e1000e-.tar.gz
3. Change to the driver src directory, where is the version number
for the driver tar:
cd e1000e-/src/
4. Compile the driver module:
# make install
The binary will be installed as:
/lib/modules//updates/drivers/net/ethernet/intel/e1000e/e1000e.ko
The install location listed above is the default location. This may differ
for various Linux distributions.
5. 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
6. 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 / dev ethX
7. 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
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
还附带有命令行的参数解释
Command Line Parameters
-----------------------
If the driver is built as a module, the following optional parameters are used
by entering them on the command line with the modprobe command using this
syntax:
modprobe e1000e [=,,...]
There needs to be a for each network port in the system supported by
this driver. The values will be applied to each instance, in function order.
For example:
modprobe e1000e InterruptThrottleRate=16000,16000
In this case, there are two network ports supported by e1000e in the system.
The default value for each parameter is generally the recommended setting,
unless otherwise noted.
其实总结下就是[root@saashr-new ~]# tar -zxvf e1000e-3.3.4.tar.gz
[root@saashr-new ~]# cd e1000e-3.3.4/src
[root@saashr-new ~]# make install
[root@saashr-new ~]# modprobe e1000e
[root@saashr-new ~]# ip address add / dev eth0
[root@saashr-new ~]# ip -a
[root@saashr-new ~]# dracut --force
[root@saashr-new ~]# cd /etc/sysconfig/network-scripts
[root@saashr-new ~]# more ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
TYPE=Ethernet
HWADDR=dc:4a:3e:67:35:2e
BOOTPROTO=static
IPV6INIT=no
USERCTL=no
IPADDR=xxxx
NETMASK=xxx
[root@saashr-new ~]# service network restart
Shutting down interface eth0: Device state: 3 (disconnected)
[ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Active connection state: activated
Active connection path: /org/freedesktop/NetworkManager/ActiveConnection/1
[ OK ]
值得注意的是,/etc/udev/rules.d/70-persistent-net.rules也是在安装的过程中新生成的
以上就是详细的操作过程
服务器linux安装后没有网卡驱动,解决安装Linux之后没有网卡驱动相关推荐
- 安装linux系统后屏幕花屏,解决安装ubuntu系统时屏幕花屏现象
我的情况是安装ubuntu系统完毕首次进入系统,界面是完好的,重启之后就会花屏.解决方案: 首次登录进去,或者用启动盘安装系统的时候点击Try Ubuntu with installing进入系统后, ...
- linux服务器出现黄,linux服务器出现严重故障后的原因以及解决方法
linux服务器出现严重故障后的原因以及解决方法 发布时间:2011-11-24 16:32:18 作者:佚名 我要评论 linux服务器出现严重故障后的解决方法,本文为大家介绍四个步骤解决l ...
- Mac更新后ae不能打开,ae安装后打开报错解决方法
Mac更新后ae不能打开,mac最新系统ae打不开,ae安装后打开报错怎么办?有网友提问,装的AE2021版本,之前还好好的,突然某天就打不开了,重装AE也没用,怎么都打不开,每次都提示这个?如何解决 ...
- win11安装后黑屏怎么解决
有不少小伙伴反应自己给电脑安装了win11系统后,都出现了一些win11黑屏怎么办,该如何解决win11黑屏问题呢?遇到这些情况的时候,我们可以尝试以下的方法解决,下面小编就给大家分享下win11安装 ...
- com加载项没反应 ppt wps_islide安装后不显示怎么办?islide安装后用PPT2016打开不显示的原因及解决方法介绍...
islide安装后不显示怎么办?islide是一款功能十分强大的PPT美化工具,受到了很多行业人士的青睐,其中不仅能对PPT进行美化处理,还有海量的PPT模板,让你再也不用担心领导为你安排制作PPT的 ...
- Google Analytics 跟踪代码安装后状态总是显示'未安装跟踪代码'
最近要使用Google Analytics,但是在跟踪代码安装后状态总是显示'未安装跟踪代码'!如下所示: 在Google Analytics的帮助中"排查常见的跟踪设置错误" ...
- Kali Linux 2019.4发布了!解决Kali Linux 2019.4中文乱码问题
Kali Linux 2019.4发布了!解决Kali Linux 2019.4中文乱码问题 参考文章: (1)Kali Linux 2019.4发布了!解决Kali Linux 2019.4中文乱码 ...
- 树莓派安装后中文设置及输入法安装
转:https://www.cnblogs.com/tdm8/p/10288153.html 树莓派安装后中文设置及输入法安装 树莓派(raspberry pi)的原版是没有中文支持的,需安装 第一步 ...
- 【Ubuntu】联想拯救者y7000安装NVIDIA显卡驱动(解决安装后[黑屏]和[卡死]的问题)
本文参考了以下两篇博文,在此表示感谢:博文一.博文二. 一:必要的配置 参照博文一,我们没有用run文件的方法来安装驱动(因为装完后会黑屏), 而是先把源更换为国内的阿里源,然后在Other Soft ...
- 安装VMWare tools,以及解决安装后/mnt中有hgfs但没共享文件的方法
一.首先是安装VMWare tools 安装过程可参考:http://www.cnblogs.com/jiu0821/p/7559949.html 二.解决安装VMWare tools后/mn ...
最新文章
- java中的IO详解(上)
- 天龙八部凤鸣镇目标服务器无法响应,Jmeter给NoHttpResponseException:目标服务器无法响应错误...
- Simulink中进行电容充放电的一种简单仿真
- 浮点数例外 (核心已转储)_15000 字梳理 JVM 的核心知识
- 操作系统和Linux
- Silverlight动画基础三:动画与向量-模拟重力效果
- Element-UI-的登录页面_密码框---Element-UI工作笔记004
- 计算机老师的专业发展怎么写,高职计算机教师专业发展研究
- html页面字段怎么排版,如何做好html的排版标签
- 副业接私活必备的 10 个开源项目!
- 【LeetCode】【数组】题号:*289,生命游戏
- idean中jsp页面乱码_IntelliJ IDEA 控制台 乱码 有效解决办法
- 数值计算(四)——插值法(3)Hermite插值法(补充)
- GPS(全球定位系统)
- PHP案例 许愿墙 PHP许愿墙
- 【深度学习】关于pytorch中使用pretrained的模型,对模型进行调整
- 一次因为游戏程序员猝死引发的思考
- jmeter 录制--https代理证书导入IOS手机
- 【将门创投】格灵深瞳赵勇:计算机视觉在安防、交通、机器人、无人车等领域的应用...
- 大数据面试知识点整理合辑