It is very easy to share Nat Internet with the customer system in VMware. However, I have tried it many times but sometimes it is OK and sometimes it is impossible. Today, I am inspired by another blog, A configuration is very critical.
If you are using VMware 6.0, see the URL: http://www.blogjava.net/smallfa/archive/2010/11/22/338649.html
The key lies in the gateway settings:
Check vmnet8 In the NAT entry in the VM network settings. Generally, the address 192.168.x.2/255.255.255.0 is vmnet8. The NAT Gateway
There are usually two non-physical local connections on machines installed with VMware. vmnet8 is the connection used by Nat. If this local connection is disabled, you will not be able to connect to your system (Linux) through the network. to access the Internet in Linux, you only need to configure three locations.
First,Configure the local vmnet8 IP address as a manual IP address, and set the IP device as an uncommon private network segment. In this example, 192.168.152.1 is used, and the gateway is not set.
Second,Configure the gateway configuration under VMware. In this example192.168.152.2
VMware Workstation 7.1.2 build-301548 used by the author
The gateway configuration process is as follows:
Menu: Edit-> Virtual Network editor...
Third,Configure the IP address in Linux as 192.168.152.x, mask as 255.255.255.0, and gateway192.168.152.2[Here is the key]
CAT/etc/sysconfig/network-scripts/ifcfg-eth0
Device = eth0
Bootproto = none
# Bootproto = DHCP
Hwaddr = 00: 0C: 29: 70: C2: 6d
Onboot = Yes
Type = Ethernet
Ipaddr = 192.168.152.129
Gateway =192.168.152.2
Userctl = No
Ipv6init = No
Peerdns = Yes
Netmask = 255.255.255.0
Reload the network configuration name
Service Network restart