VMware克隆CentOS 6.4后 重新设置eth0

问题:用VMware克隆CentOS 6.4后,发现系统内只有eth1,而且/etc/sysconfig/network-scripts/下只有,ifcfg-eth0文件,虽然可以上网,但无法设置静态IP。

ifconfig eth0

eth1: error fetching interface information: Device not found

解决:vi /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:5b:2e:23", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

下面的内容删除

将eth1改成eth0

ATTR{address}=="00:0c:29:5b:2e:23"改成新的地址(删除部分中有该地址)

原文地址:https://www.cnblogs.com/jingyunyb/p/3349975.html