通过克隆centos虚拟机后,修改网络配置文件后,无法正常获取IP地址,重启网卡也提示Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]:
#删除/etc/udev/rules.d/70-persistent-net.rules文件
[root@lotus rules.d]# pwd
/etc/udev/rules.d
[root@lotus rules.d]# rm -rf 70-persistent-net.rules
#修改/etc/sysconfig/network-scripts/ifcfg-eth0配置文件如下
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
IPADDR=192.168.88.136
PREFIX=24
GATEWAY=192.168.88.2
DNS1=114.114.114.114
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
#修改完成后执行重启,
[root@lotus rules.d]# reboot
#重启后恢复正常