1. Disable the network manager.
Chkconfig -- level 35 network on
Chkconfig -- level 0123456 NetworkManager off
Restart
2,
Delete the/etc/udev/rules. d/70-persistent-net.rules file and restart it. The eth0 Nic is started successfully and the/etc/udev/rules. d/70-persistent-net.rules file is regenerated.
It should be enough.
3. Modify the NIC configuration of the machine.
VI/etc/sysconfig/network-scripts/ifcfg-eth0
4. Modify the Host Name
VI/etc/sysconfig/Network
The following is a good ifcfg-eth0 file in the virtual machine:
DEVICE="eth0"NM_CONTROLLED="yes"ONBOOT="yes"IPADDR=192.168.9.202NETMASK=255.255.255.0BOOTPROTO=yesTYPE="Ethernet"UUID="4874beeb-8c63-4b56-96f2-d78de825ceb2"PREFIX=24DEFROUTE=yesIPV4_FAILURE_FATAL=yesIPV6INIT=noNAME="System eth0"HWADDR=00:0C:29:80:64:30LAST_CONNECT=1355405012GATEWAY=192.168.9.2DNS1=8.8.8.8USERCTL=no