bringing up interface eth0: error no suitable device found
阿新 • • 發佈:2018-12-27
虛擬機器克隆的時候出現的問題,會因為複製了網絡卡資訊導致這個情況,具體處理方式如下
解決辦法:
首先,開啟/etc/udev/rules.d/70-persistent-net.rules內容如下面例子所示:
# This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME也就是說,克隆的時候把網絡卡的MAC地址也克隆了,導致了有兩個系統有相同的MAC地址。於是,要麼把DEVICE=eth0改成DEVICE=eth1,然後HWADDR改成00:0c:29:75:d1:d7;要麼在70-persistent-net.rules檔案中把eth0的地址改成00:0c:29:75:d1:d7,同時把eth1的配置註釋掉,然後在ifcfg-eth0中修改HWADDR。之後再service network restart即可。= key. # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:67:c5:e2", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:75:d1:d7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
我使用的方法是 註釋eth1 把eth1的 ATTR{address}=="00:0c:29:75:d1:d7"貼上到要使用的“eth0” 中去
然後修改配置檔案 cat /etc/sysconfig/network-scripts/ifcfg-eth0 將其中的 HWADDR= 08:00:27:4f:47:15更改為剛才是資訊