Device eth0 does not seem to be present, delaying initialization: Linux Networking

copy centos 报错 Device eth0 does not seem to be present, delaying initialization: Linux Networking

# rm /etc/udev/rules.d/70-persistent-net.rules

#nano /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth1
TYPE=Ethernet
#UUID=10e89f5c-6068-4386-b102-46b2312979df
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
#HWADDR=08:00:27:86:2D:8A
IPADDR=192.168.0.xx
PREFIX=24
GATEWAY=192.168.0.1
DNS1=8.8.8.8
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth1"

配置DNS

/etc/resolv.conf

原文地址:https://www.cnblogs.com/tonnytong/p/7741974.html