相对于windows系统,Linux的易用性相对要差些。今天为了解决问题,用再生龙把3年前的镜像装到最新型号机器中,发现网卡起不来。
异常信息大意是说e1000e型号的设备eth0不存在。百度异常信息结果多是虚拟机系统迁移导致设备名称变化或者MAC不匹配,但是根据经验判断应该是驱动问题,也就是当前网卡型号不是e1000e。
接下来首要的事情就是确定网卡型号,通过以下命令可以达到目的。
[root@dimos log]# lspci -vvv
输出信息有很多,其中Ethernet controller信息是关于网卡的。
红色圈起部分就是网卡具体型号。
从百度搜索关键字可以导航到Intel官网,有下载链接和安装步骤。
在安装之前还有个问题要解决,就是文件传输。网卡没驱无法FTP,只能优盘;多数Linux系统不是即插即用的,所以就要先通过mount命令挂载分区。
先插上优盘,然后通过以下命令查看u盘分区:
对比插入优盘前后分区变化,确认/dev/sdb4是优盘分区,然后通过以下命令挂载分区:
mkdir /mnt/usb mount -t vfat /udev/sdb4
挂载成功后,通过df -h 可以查看优盘容量,以确认挂载成功。
接下来安装的过程就简单了以下摘自Intel 官网:
Move the base driver tar file to the directory of your choice. For example, use '/home/username/igb' or '/usr/local/src/igb'. Untar/unzip the archive, where <x.x.x> is the version number for the driver tar file: tar zxf igb-<x.x.x>.tar.gz Change to the driver src directory, where <x.x.x> is the version number for the driver tar: cd igb-<x.x.x>/src/ Compile the driver module: # make install The binary will be installed as: /lib/modules/<KERNEL VERSION>/kernel/drivers/net/igb/igb.[k]o The install location listed above is the default location. This may differ for various Linux distributions. Load the module using either the insmod or modprobe command: modprobe igb insmod igb
参考地址:
http://blog.chinaunix.net/uid-26729093-id-4257952.html
http://downloadmirror.intel.com/20927/eng/e1000.htm
https://downloadcenter.intel.com/download/13663
downloadmirror.intel.com/20927/eng/e1000.htm#igb_driver