網卡錯誤訊息:device eth1 does not seem to be present delaying initialization.

摘要:網卡錯誤訊息:device eth1 does not seem to be present delaying initialization.

IDC對雲端伺服器進行調整,開機後進去查看,結果發現網卡eth1沒有啟動。

重新啟動後,出現錯誤訊息:device eth1 does not seem to be present delaying initialization.

輸入ifconfig -a,發現沒有eth1,卻多了eth2,但也沒啟動。

 

輸入dmesg | grep -in eth

多了一行類似此類訊息:udev renamed network interface eth2 to eth1

註:因為我已經解決後關掉了,所以記憶中應該是上列訊息。

 

 

檢查/etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="OLD MAC ADDRESS", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth1"
 
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="OLD MAC ADDRESS", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth0"
 
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="NEW MAC ADDRESS", ATTR{type}=="1",
KERNEL=="eth*", NAME="eth2"

多了一個eth2,因此把eth2的MAC ADDRESS複製貼上到eth1上,並將eth2註解掉。

 

再至/etc/sysconfig/network-scripts/ifcfg-eth1

將eth2的MAC ADDRESS加入到HWADDR中。

然後再將伺服器重新開機後檢查,確認eth1已可正常啟動。

 

參考來源

https://www.centos.org/modules/newbb/viewtopic.php?topic_id=33013

http://www.regendoerp.com/articles/device-eth1-does-not-seem-to-be-present-delaying-initialization/

http://huuua.blog.51cto.com/1043172/782363