一.故障現(xiàn)象:[root@c1node01 ~]# service network restartShutting down loopback insterface: [ OK ]Bringing up loopback insterface: [ OK ]Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]解決辦法:[root@c1node01 ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules[root@c1node01 ~]# reboot ………………[root@c1node01 ~]# service network restartShutting down loopback insterface: [ OK ]Bringing up loopback insterface: [ OK ]Bringing up interface eth0: [ OK ][root@c1node01 ~]#二.另一種方法造成這樣的原因,,是因?yàn)樵谔摂M機(jī)(Vmware)中移動了Centos系統(tǒng)對應(yīng)的文件,導(dǎo)致重新配置時,,網(wǎng)卡的MAC地址變了,,輸入ifconfig -a,找不到eth0·······安裝完一個centos虛擬機(jī),又拷貝一份,,開機(jī)后網(wǎng)卡無法正常啟動,報(bào)錯:Device eth0 does not seem to be present,
delaying initialization
解決:# mv /etc/sysconfig/network-scripts/ifcfg-eth0
sysconfig/network-scripts/ifcfg-eth1
vim
sysconfig/network-scripts/ifcfg-eth1
修改DEVICE="eth0"
為DEVICE="eth1"
可刪掉uuid,、物理地址
然后重啟啟動網(wǎng)卡嘗試下三.比第一種更深入一點(diǎn)
故障前的操作:
DELL刀片裝的是CentOS6.3的操作系統(tǒng),,網(wǎng)卡識別的是em1和em2,由于工作需要做了槽位調(diào)整,,并啟動了刀片
故障現(xiàn)象:
啟動后網(wǎng)絡(luò)不通,,通過iDRAC登錄后route查看缺省路由正常;
重啟網(wǎng)絡(luò)服務(wù):
[root@nodeA ~]# service network restart Shutting down loopback insterface: [ OK ] Bringing up loopback insterface: [ OK ] Bringing up interface em1: Device em1 does not seem to be present,delaying initialization. [FAILED]
分析問題和解決:
之前在別的文章中我們提過70-persistent-net.rules文件,,所以看了一下:
[root@nodeA ~]# vi /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key.
# PCI device 0x14e4:0x163a (bnx2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="24:b6:fd:ab:76:1e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x14e4:0x163a (bnx2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="24:b6:fd:ab:76:1c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
發(fā)現(xiàn)NAME的名稱不正確,,依次將上述紅色字體中的eth0改為em1,eth1改為em2,;
*切記:網(wǎng)卡編號由MAC地址大小決定,,MAC越小網(wǎng)卡編號越小,;
如下:
…………
# PCI device 0x14e4:0x163a (bnx2)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="24:b6:fd:ab:76:1e", ATTR{type}=="1", KERNEL=="eth*", NAME="em2"
# PCI device 0x14e4:0x163a (bnx2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="24:b6:fd:ab:76:1c", ATTR{type}=="1", KERNEL=="eth*", NAME="em1"
保存退出~,!
[root@nodeA ~]#reboot
………………