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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章