The first step: the production of new network card address, start the system.
The second step: Modify the hostname (note: Here according to personal needs, do not modify the line, here I am used to build a cluster, modify the hostname to make a distinction) Execute command: Vi/etc/sysconfig/network Modify the value of hostname hostname Step three: Execute command: vi/etc/ Udev/rules.d/70-persistent-net.rules Note: ① comment out the first network card driver Red label Place ② or delete the configuration information, Red label Place # PCI device 0x1022:0x2000 (Pcnet32)
subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "00:0c:29:95:4a:d3", attr{type}== "1", kernel== " eth* ", name=" eth0 "Fourth step: Execute command: vi/etc/sysconfig/network-scripts/ifcfg-eth0hwaddr value modification Sing Woo second step note 00:50:56:2e:4e:70 modification
Device=eth0
Hwaddr=00:50:56:2e:4e:70
Type=ethernet
uuid=ad391919-c736-4d3d-b24d-1d78427e7c6e
Onboot=yes
Nm_controlled=yes
Bootproto=static
Ipaddr=192.168.8.111
netmask=255.255.255.0
gateway=192.168.8.1
dns1=4.4.4.4
dns2=8.8.8.8
Fifth step: Restart the machine, the configuration is OK.
Centos VMware post-clone network configuration