Failure background:
After cloning virtual machine, even not the Internet, ifconfig view, found that the network card eth0 did not start, so ifconfig eth0 up eth0 network card, the results can not start, enter/etc/sysconfig/network-scripts/ Ifcfg-eth0 view, found that the MAC address and IP address is the same as the original, so modify the IP service network restart Restart network services, the discovery prompt bringing up interface eth0: Device eth0 does not seem to be present, Delayin initialization. Then decided to modify the MAC address.
Causes of failure:
Because of the cloning of virtual machines, VMware just modified the name of the virtual machine and other information, and did not modify any information on the virtual hard disk, causing the network card after cloning the MAC address and the operating system recorded in the MAC address does not match, causing eth0 to start up. The operating system records the addition of a new network card, the name Eth1,mac address of the new network card is the new MAC address assigned by VMware
Workaround:
Go to/etc/udev/rules.d/70-persistent-net.rules file
Record the MAC address of the eth1 00:0c:29:31:9a:0a
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/88/3B/wKioL1fsifPj8Pb8AAR2YTjr5OA257.jpg "title=" 1.jpg " alt= "Wkiol1fsifpj8pb8aar2ytjr5oa257.jpg"/>
Modify the MAC address in/etc/sysconfig/network-scripts/ifcfg-eth0 Hwaddr to
/etc/udev/rules.d/70-persistent-net.rules the modified eth1 MAC address,
Nic name device changed to Eth1, save exit.
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/88/3B/wKioL1fsiifzxXQcAACBOB2qOMc707.jpg "title=" 2.jpg " alt= "Wkiol1fsiifzxxqcaacbob2qomc707.jpg"/>
Service Network restart restart the networking service.
Ifconfig View IP To resolve the issue.
VMware cloning CentOS modifying MAC address