Quick approach:
Cat/etc/sysconfig/network-scripts/ifcfg-eth0
Sed-i '/uuid/d '/etc/sysconfig/network-scripts/ifcfg-eth0
Sed-i '/hwaddr/d '/etc/sysconfig/network-scripts/ifcfg-eth0
>/etc/udev/rules.d/70-persistent-net.rules
Reboot
===========================================================
VMware cloning Centos6.4 virtual machine NIC does not start problem
In the old boy's teaching process, found that some students encountered the following problems can not be solved.
Quickly create a Linux virtual machine version of CentOS 6.4 with Vmware8 's full cloning capabilities.
Post-creation symptoms: Use ifconfig after startup, discover no IP address, only the loopback address is 127.0.0.1,
The MAC address and host name are the same as the source host (the source host is manually configured IP).
Any execution of the following commands is useless anyway:
/etc/init.d/network restart
Ifup eth0
Workaround:
1. Edit eth0 configuration file: Vi /etc/sysconfig/network-scripts/ifcfg-eth0, Delete HWADDR address the row and UUID line are as follows:
hwaddr=00:0c:29:08:28:9f
uuid=cee39dbb-6a10-4425-9daf-768b6e79a9c9
tip: Of course, you can also modify the actual hwaddr and UUID without deleting it. See
/etc/udev/rules.d/70-persistent-net.rules
eth0 Nic File modified:
[[email protected] ~]# cat /etc/sysconfig /NETWORK-SCRIPTS/IFCFG-ETH0
device=eth0
onboot=yes
NM_CONTROLLED= YES
bootproto=none
IPADDR=10.0.0.27
NETMASK=255.255.255.0
dns2=8.8.8.8
dns1=10.0.0.254
userctl=no
2. If necessary, empty the following files:
>/etc/udev/rules.d/70-persistent-net.rules.
Hint: The machine name can not be changed
3. Reboot the system: Reboot or reboot outside the VM.
4, reason guessing: VM Cloning to protect the source machine and clone machine start Network Configuration address conflict protection policy.
This article from "CHENQJ" blog, declined reprint!
VMware cloning Centos6.4 virtual machine NIC does not start problem