重启网卡提示Bringing up interface eth0:

当我们克隆centos虚拟机无法正常获取IP地址,重启网卡

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

 

1.这是因为克隆的机器没有正确的mac,UUID信息冲突导致的,首先将/etc/udev/rules.d/70-persistent-net.rules文件清空

 

2.rm -f /etc/udev/rules.d/70-persistent-net.rules文件删除(或者重命名):cat /etc/udev/rules.d/70-persistent-net.rules

 

3.然后将网卡配置文件/etc/sysconfig/network-scripts/ifcfg-eth0的uuid和hwaddr这两行删除

 

4.执行reboot命令,重启系统,就可以了。

posted @ 2020-07-30 18:13  情花i  阅读(333)  评论(0编辑  收藏  举报