新买的一台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之后没有网卡驱动相关推荐

  1. brew安装_解决安装brew报的curl的443错误

    通过Hombrew官网执行执行安装命令 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/insta ...

  2. 安装黑苹果提示未能安装_解决安装黑苹果出现提示应用程序副本已损坏,不能用来安装macOS的解决方法...

    安装黑苹果系统出现提示 应用程序副本已损坏,不能用来安装macOS的解决方法 不管是实体机黑苹果安装,还是虚拟机安装,都会遇得到 原因,苹果系统镜像文件中内置的时间证书到期 比如现在的时间是2019/ ...

  3. 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中文乱码 ...

  4. Kali Linux 2019.4用U盘安装以及解决Kali Linux 2019.4中文乱码问题

    一.利用Win32 Disk Imager 实现U盘刻录ISO 1.Kali Linux官网下载 2.Win32 Disk Imager官网下载地址 3.打开Win32 Disk Imager软件,添 ...

  5. python安装过程中出现文件或目录损坏且无法读取_解决安装python库时windows error5 报错的问题...

    python安装库时,有时候会报错windows error 5,可以尝试关闭所有使用python的编辑器.文件等,然后重新pip安装,如果还是不行,可以将报错最下层文件删除即可(如果不放心可以将该文 ...

  6. python安装失败找不到指定路径_解决安装python库时windows error5 报错的问题

    python安装库时,有时候会报错windows error 5,可以尝试关闭所有使用python的编辑器.文件等,然后重新pip安装,如果还是不行,可以将报错最下层文件删除即可(如果不放心可以将该文 ...

  7. 【详解+安装失败解决】Win11系统装CH340驱动方法

    之前由于手误升级了WIN11系统,所以之前可以轻松连接的CH340等一系列串口驱动全部报废,啥都连不上,网上的方法都是WIN10的,试了一堆全部失败告终,在不懈努力之下终于摸索出成功装CH340的方法 ...

  8. 安装python系统找不到指定的路径_解决安装过程中显示“系统找不到指定的路径”-百度经验...

    解决软件安装过程中显示"系统找不到指定的路径"?有些用户在变声专家一半时候弹出"无法打开....系统找不到指定的路径"字样,解决方法非常简单,如遇上述问题的小伙 ...

  9. caffe-gpu ubuntu 安装_如何在Linux中安装vnStat和vnStati监视网络流量

    VnStat是针对Linux和BSD的基于控制台的网络流量监视工具设计.它将保留所选网络接口的网络流量日志.为了生成日志,vnStat使用内核提供的信息. 换句话说,它不会嗅探网络流量,并且可以确保系 ...

最新文章

  1. Windows中的命令行提示符里的Start命令执行路径包含空格时的问题
  2. 2.3.5 操作系统之信号量机制实现进程的互斥、同步与前驱关系
  3. android studio import android-source-code
  4. ant build里如何指定classpath
  5. BlazorCharts 原生图表库的建设历程
  6. spring boot简介_Spring Boot简介
  7. java遮罩层_页面遮罩层 - javaalex的个人空间 - OSCHINA - 中文开源技术交流社区
  8. android高仿微信视频编辑页-视频多张图片提取
  9. 威伦触摸屏入门布局提升题
  10. Java问卷调查系统
  11. Linux系统配置(shell函数与数组)
  12. Office办公 如何打印顺丰发票
  13. OPENCV例子\samples\cpp\tutorial_code\ImgProc\changing_contrast_brigh的代码分析
  14. 基于距离传感器的I2C通信(一)
  15. SQLIntegrityConstraintViolationException: ORA-00001: unique constraint及sequence调整初始值
  16. 诺基亚衰落的原因及其如何走去困境
  17. ECG信号三大主要噪声-基线漂移,工频干扰,肌电干扰
  18. ECIF OCRM ACRM关系
  19. CSS:text-decoration文本装饰
  20. 五十音图平假名随机生成

热门文章

  1. XDJM们,北京神州泰岳软件怎么样啊?谢啦
  2. c语言 原子操作,原子操作
  3. ElasticSearch之监控工具-cerebro
  4. 《抽样技术》第五版思维导图
  5. 三国皇帝的寡妇秘史(2)
  6. 2500php,Ryzen 5 2500U的性能评测
  7. python 双色球 输出到txt_python3 - 写一个生成双色球号码的一个程序,生成的号码写到文件里面...
  8. 数据重复(唯一索引的设置)
  9. 思考致富-55个著名的借口
  10. drupal安装模块