在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便可。文件

 

親自試驗過得 哦!!!!

相關文章
相關標籤/搜索