在VMware里克隆出来的CentOS Linux 报Device eth0 does not seem to be present

在VMware里克隆出来的CentOS Linuxlinux

 

首先,打开镜像系统的/etc/udev/rules.d/70-persistent-net.rules内容以下面例子所示:服务器

# vi /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= key.
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8f:89:9
7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:50:bd:1get

7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"generator

 

第1、删除70-persistent-net.rules文件it

第2、重启镜像服务器file

第3、查看新生成的/etc/udev/rules.d/70-persistent-net.rules文件中 eth0call

的mac地址top

第4、修改ifcfg-eth0中的mac地址。di

第5、ifup eth0便可。文件

 

亲自试验过得 哦!!!!

相关文章
相关标签/搜索