Error:No suitable device found: no device found for connection "System eth0"解决方法

现象描述:

最近在克隆centos6系统机虚拟机迁移完成后,在克隆或者迁移的系统启动网卡报错然后就百度了下:

报错信息:Error:No suitable device found: no device found for connection "System eth0"

解决方法:

删除/etc/udev/rules.d/70-persistent-net.rules文件,重启系统。

如果上面的不起作用

vim 编辑文件 /etc/udev/rules.d/70-persistent-net.rules ;对比下物理地址和网卡的标识,然后需要将eth0配置为文件更改成和该文件一致:

如:

网络在启动的时候会去配置文件 /etc/udev/rules.d/70-persistent-net.rules 读取相应的信息,如:

# PCI device 0x8086:0x100e (e1000) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:fb:0c:96", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:fb:0c:8c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


vim  etc/sysconfig/network-script/ifcfg-eth0


DEVICE=eth2

HWADDR=00:0c:29:fb:0c:96

NM_CONTROLLED=yes

ONBOOT=yes

IPADDR=192.168.16.222

BOOTPROTO=none

NETMASK=255.255.255.0

TYPE=Ethernet

GATEWAY=192.168.16.1

DNS1=8.8.8.8

IPV6INIT=no

USERCTL=no       

保存

关闭NetworkManager

[root@localhost ~]# /etc/init.d/NetworkManager stop

重新启动网卡service network restart

你可能感兴趣的:(百度,配置文件,provided,Address,custom)