CentOS 解决Device eth0 does not seem to be present,delaying initialization

1、问题描述

ifconfig...没有看到eth0.。然后重启网卡又报下面错误。

故障现象:

service network restart

Shutting down loopback insterface: [ OK ]

Bringing up loopback insterface: [ OK ]

Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]


2、解决办法:

[root@c1node01 ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules (不起作用)

[root@c1node01 ~]# reboot ………………

[root@c1node01 ~]# service network restart


一个好的思路:

1.打开etc/sysconfig/network-scripts/ ifcfg-eth0,确定ONBOOT应该为yes,

2.检查ifcfg-eth0的MAC和ifconfig的MAC是否相符,并修改ifcfg-eth0的MAC。

3.重启服务,service network restart.

4.然后系统会自动识别到网卡信息,就ok了。


/etc/udev/rules.d/70-persistent-net.rules 这个文件里绑定了网卡和MAC地址,把这个文件改了或删掉重启就可以了。

说白了就是,在克隆出的虚拟机中只要删除跟NAME=”eth0″相关的行,并且把eth1改为eth0,并重启系统即可。

相关链接

http://wolfword.blog.51cto.com/4892126/1304000