Device eth0 does not seem to be present, delaying initialization linux
故障背景:
在vmware workstation中了彻底克隆了一个已经存在的CentOS的虚拟机,启动以后发现网卡没有启动。因而重启一下network服务,发现提示错误信息“Device eth0 does not seem to be present, delaying initialization.” 服务器
故障产生的缘由:
因为克隆虚拟机,vmware只是修改了虚拟机的名字等信息,并无修改虚拟硬盘中的任何信息,致使克隆后网卡的MAC地址和操做系统中记录的mac地址不符,致使eth0启动不起来。操做系统记录了一个新网卡的添加,新网卡的名字eth1,mac地址就是vmware分配给的新的mac地址 操作系统
解决方法:
修改 /etc/udev/rules.d/70-persistent-net.rules 文件
删除掉 关于 eth0 的信息。修改 第二条 eth1 的网卡的名字为 eth0.
修改 /etc/sysconfig/network-scripts/ifcfg-eth0 中mac地址为 /etc/udev/rules.d/70-persistent-net.rules 修改后的eth0的mac地址。
重启服务器。 ip