本人博客文章:https://lwxshow.com/post/1064.html
vmware centos6.3 Device eth0 does not seem to be present
vmware虚拟机 centos6.3出现设备eth0没有找到,解决方案。
如果大家将VMX文件附加到新建的虚拟机上面,MAC地址会随之改变。
所以大家要修改下。
1.打开你的虚拟机,右击->属性->网络->Advanced->
2.Mac Address 为你的新的Mac地址.
例如:00:22:33:0F:22:81
3.打开虚拟机,
提示:
Old MAC Address:老的Mac地址
New MAC Address为新的Mac地址.
登录后输入
vi /etc/udev/rules.d/70-persistant-net.rules
# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<Old MAC Address>", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
PCI device 0x1022:0x2000 (pcnet32)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<New MAC Address>", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
to
# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<New MAC Address>", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
#PCI device 0x1022:0x2000 (pcnet32)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<New MAC Address>", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"