VMware installs CentOS virtual machine, copy to other machine will find the IP address and configuration file does not match.
Workaround:
Editing a configuration file
# Vi/etc/udev/rules.d/70-persistent-net.rules
Find the row where the eth0 is located (if more than one eth0 is commented out, keep only one eth0) as follows:
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:ac:24:d2", attr{type}== "1", kernel== "eth*" , name= "Eth0"
Click Vmware>vm>settings> to select the NIC >advanced, you will see the MAC address and replace it with the MAC address in the above content.
To edit the network card configuration file
#vi/etc/sysconfig/network-scripts/ifcfg-eth0
Replace the MAC address, configure the IP.
Restart the CentOS virtual machine.
This article from the "Old Scholar" blog, reproduced please contact the author!
CentOS VMware Virtual machine copy after IP address and configuration file does not match