解决虚拟机克隆的linux系统ip无法正常使用问题

当我们克隆centos虚拟机无法正常获取IP地址,重启网卡也提示Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]:

该如何解决呢

  1. 重启网卡提示Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]:

     

    重启网卡提示Bringing up interface eth0:
  2.  

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

    重启网卡提示Bringing up interface eth0:
  3.  

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

     

    重启网卡提示Bringing up interface eth0:
  4.  

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

     

    重启网卡提示Bringing up interface eth0:
  5.  

    执行reboot命令,重启系统

     

    重启网卡提示Bringing up interface eth0:
  6.  

    这时重启网卡就能正常重启了:/etc/init.d/network restart

    重启网卡提示Bringing up interface eth0:
  7.  

    查看主机IP地址,正常获取:ip add

    重启网卡提示Bringing up interface eth0:

转载于:https://www.cnblogs.com/cnqfz/p/10831873.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值