CENTOS6after the virtual machine is cloned, the NIC name changes, and the default network card name is eth0. The network card for the cloned virtual machine is eth1.
Default configuration file:/etc/sysconfig/network-scripts/ifcfg-eth0
1 , and the configuration file, restart network.
[[Email protected]]# vim/etc/sysconfig/network-scripts/ifcfg-eth0
Device=eth0
Type=ethernet
Onboot=on
Nm_controlled=yes
Bootproto=dhcp
2 , editing a network card device
[Email protected]]# Vim/etc/udev/rules.d/70-persistent-net.rules
The following content, you will see that there are 2 NICs eth0 and Eth1,eth0 for the clone system, eth1 for regeneration, the front plus # comment out the first network card, change the 2nd network card for eth0, record the MAC address
# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:c1:4c:6b", attr{type}== "1", kernel== "eth*" , name= "Eth0"
# PCI Device 0x8086:0x100f (e1000)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:06:65:11", attr{type}== "1", kernel== "eth*" , name= "Eth1"
3 and restart the machine. The NIC name will be changed to eth0.
Network adapter Modification method after VMware virtual machine cloning CentOS 6