这个错误的原因是因为我们克隆虚拟机以后, eth0网卡的mac地址发生了改变导致的.
解决办法如下:
1
vi /etc/udev/rules.d/70-persistent-net.rules
我们会发现类似:
1
2
3
4
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:7b:60:38", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device