Ifconfig显示网卡总是报错,IP配置无效,重启也无效,日志错误有如下内容:
May 7 17:16:05 localhost kernel: e1000e 0000:02:00.0: eth1: Reset adapter
May 7 17:16:05 localhost kernel: e1000e 0000:02:00.0: eth1: Error reading PHY register
ethtool查看显示也不正常
ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: Unknown!
Duplex: Unknown!
解决办法,升级网卡驱动,下载相应的驱动包,首先查看网卡的型号:
lspci -v | grep Ethernet -A 1
02:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Device 0000
--
03:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
Subsystem: Intel Corporation Device 0000
在查看驱动类型:
ethtool -i eth0
driver: e1000e
version: 1.4.4-k
firmware-version: 2.3-13
bus-info: 0000:02:00.0
驱动为e1000e,然后下载相应的驱动,此例中选择最新的2.0驱动,地址为:
wget stable/2.0.0/e1000e-2.0.0.tar.gz
tar zxf e1000e-2.0.0.tar.gz && cd e1000e-2.0.0/src && make install
rmmod e1000e;modprobe e1000e (远程连接,必须两个命令一起使用,否则网卡就断了)
然后重启。
转自:http://blog.sina.com.cn/s/blog_48e344da01014zpt.html
阅读(2154) | 评论(0) | 转发(0) |