vmware克隆centos6.5 导致 system eth0 不可用解决办法

vim /etc/udev/rules.d/70-persistent-net.rules

可以看到eth0 eth1两个。

注释 NAME="eth0"

# PCI device 0x8086:0x100f (e1000)

SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:48:85:9c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

将 NAME="eth1" 改成NAME="eth0"

并将 ATTR{address}=="00:0c:29:48:85:9c",中的网卡地址改到

/etc/sysconfig/network-scripts/ifcfg-eth0 文件中,HWADDR="00:0C:29:48:85:9C",使他们对应。

reboot 重启使之生效

原文地址:https://www.cnblogs.com/arbitrary/p/3901241.html