Open: Computer-File System--etc--sysconfig--network-scripts--Ifcfg-eth0
Change the contents to the following configuration, which means that IP is automatically obtained.
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
Device=eth0
Bootproto=dhcp
Onboot=yes
After the modification is complete, restart the network in the terminal, as follows:
[Root@localhost ~]#/etc/rc.d/init.d/network Restart
If this file cannot be saved, it may be because it is logged in with a normal user and needs to be changed to root. Restart when the user name and password on the page to enter the user name is root, password for you to set the password.
It is possible that no matter how the settings can not be networked, this time may not be red hat but the reason for the virtual machine setup problem, in the Virtual Machine Interface menu bar Click on the "virtual Machine (M)" → settings (S) → in virtual Machine Under the Hardware Bar in the Settings page, select and configure Ethernet to "NAT: Use shared host IP address" or "host-only: share a private network with host".
If you do not have the networking after this setting, it is also possible that the VMware NAT service is not started in services under Windows. There is also the VMware DHCP Service, which is best to start. (Click Start-> run-> enter services.msc can go to the Services interface).