Device eth0 does not seem to be present delaying initialization

来源:互联网 发布:js正则匹配子字符串 编辑:程序博客网 时间:2024/05/16 17:56

警告:Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization

原因:因为虚拟机克隆后mac地址改变导致的centos网卡启动的错误

解决办法:

方法一:删除网络规则文件,重启,自动生成新的,再重启网络服务。

  •  rm -rf /etc/udev/rules.d/70-persistent-net.rules
  •  reboot
  •  service network restart

方法二:

# mv /etc/sysconfig/network-scripts/ifcfg-eth0  sysconfig/network-scripts/ifcfg-eth1


#vim sysconfig/network-scripts/ifcfg-eth1


修改DEVICE="eth0" 

为DEVICE="eth1"


然后重启启动网卡尝试下

原创粉丝点击