Generally encountered in the virtual machine is not the problem of the network, you can solve:
1. In the terminal input command: Ifconfig. --See if there is an IP address on the Eth0 interface.
No IP address was found on the Eth0 interface.
2. Enter Cat/etc/sysconfig/network-scripts/ifcfg-eth0. --View the configuration on the Eth0 interface.
Dnboot=yes
Bootproto=dhcp. See if the IP address of the Eth0 interface is DHCP (auto) acquired.
If not, through the Baidu query will own virtual machine in the operating system IP address set to become a DHCP acquisition, the general use of graphical interface settings is good.
3. Click the settings icon in the lower right corner of the virtual machine:
Click Settings
Configure the virtual machine network to status and click OK.
4. Right-click My Computer--Properties--Control Panel-Network and Sharing center--Change adapter settings:
Right-click the above icon-Properties:
Double-click the icon:
Configure the IP protocol as shown, OK, OK.
5. If this is the case, the network in the virtual machine is still unavailable:
The Windows+r key opens the service, or the cmd command line opens the service, viewing the service as shown in the beginning of the VM, whether it is started or not. Here the virtual machine does not get the IP automatically because the DHCP service is disabled and right-click Start.
After startup:
6. Under Virtual machine terminal, do the following:
The network configuration was successful.
Dhclient: Opens the DHCP client.
Service Network restart: networking restart.
Ping www.baidu.com: See if the network is a pathway.
The above 1 error is because the current user permissions are not enough to use the command, you should switch to the root user.
Network settings for virtual machine VMware workstations