device eth0 does not seem to be present, delaying initialization

在搭建LVS+Keepalived高可用负载均衡环境的过程中,使用VirtualBox复制了两个Centos的环境,并且选中了“重新初始化网卡”的选项,但是在启动这两个复制的Centos环境的时候,发现网卡eth0没有启动,执行:service network restart 命令,报错:device eth0 does not seem to be present, delaying initialization

device eth0 does not seem to be present, delaying initialization

device eth0 does not seem to be present, delaying initialization

发现没有启动eth0:

device eth0 does not seem to be present, delaying initializationdevice eth0 does not seem to be present, delaying initialization

重启网络报错:

device eth0 does not seem to be present, delaying initialization

原因是:/etc/sysconfig/network-scripts/ifcfg-eth0 保存的是旧的mac地址,而/etc/udev/rules.d/70-persistent-net.rules中是新的mac地址,二者指定的mac地址不一致,所以最简单的办法是:删除/etc/sysconfig/network-scripts/ifcfg-eth0旧的mac地址,删除文件/etc/udev/rules.d/70-persistent-net.rules,让它重新生成;当然我们也可以将ifcfg-eth0中的mac地址修改成和70-persistent-net.rules的一致。

删除之后,reboot 一下就行了,最好同时将ifcfg-eth0文件中的ip地址也修改下,防止ip冲突。

device eth0 does not seem to be present, delaying initialization

搞定。

上一篇:VS2012中,C# 配置文件读取 + C#多个工程共享共有变量 + 整理using语句


下一篇:[转载] 高大上的 CSS 效果:Shape Blobbing