Environment:
Linux virtual machine centos6.5, using Nat method.
Description
1, because the need to use the static configuration, and not only to use the DHCP method.
2, first look at the virtual machine software vmware several settings:
If you want to modify, click on the button circled in the diagram.
And look at the virtual machine settings.
The next point, Nat mode, found that the host and virtual machines can ping each other, the host can surf the Internet, but the virtual machine online display abnormal: server can not reach
Because the static configuration is used to ensure that the virtual machine address is unchanged, the problem of configuration is suspected. After repeatedly looking up the data, found in the/etc/sysconfig/network-scripts directory
Ifcfg-eth0 the configuration of the file, you need to add DNS1 settings
After this setup, you can surf the Internet via the virtual machine's Firefox browser. Note that the above is to resolve the normal communication between the host and the virtual machine, but not the Internet. If the communication between the two is not normal, then the communication problem should be resolved first.
Special emphasis: Gateway settings, if the settings and Windows as the Internet can not be, set to 192.168.136.2 is the right path