The first step vi/etc/udev/rules.d/70-persistent-net.rules
Comment out the previous eth0,
Change eth1 to eth0 and copy MAC address
Part II Vi/etc/sysconfig/network-script/ifcfg-eth0
Write the MAC address of the first step
Device=eth0
Bootproto=static
broadcast=192.168.137.255
ipaddr=192.168.137.222
netmask=255.255.255.0
gateway=192.168.137.1
Hwaddr= "00:0c:29:8b:bc:09"
Nm_controlled= "Yes"
onboot= "Yes"
Type= "Ethernet"
#UUID = "28136B6B-F3EA-48BC-9F6B-8C659C3B60AC"
Part Three service network restart
Part Fourth
To modify the gateway configuration, the host name of the native
EDIT: Vi/etc/sysconfig/network modified as follows:
Networking=yes (Indicates whether the system uses a network and is generally set to Yes.) If set to no, the network cannot be used, and many system services programs will not start.
Hostname=centos (Set the hostname of this machine, the host name set here should correspond to the hostname set in/etc/hosts)
gateway=192.168.0.1 (Sets the IP address of the gateway for the native connection. )
VM Cloning linux system after connecting network