After searching for a long time, I tried n times for Linux Internet access settings, but I didn't know what others wrote.
Now, I have found a graph.
Thank you very much for the white sky.
From: http://blog.chinaunix.net/u/25340/showart.php? Id = 2190957
======================================
Installation environment:
1. host system: Windows XP PS2
2. Virtual Machine System: Redhat Enterprise Linux 5
3. VMWare Version: VMware Workstation 6.5
Method 1: bridged
1. Install VMware (that version is also acceptable. Here we use 6.5 as an example to describe the configuration method)
2. Disable the connection from the desktop to VMware network adapter vmnet1 and VMWare network adapter vmnet8.
(The two connections are not required in bridged mode, for example)
3. Enable vmware workstation 6.5 à VM à seting settings, as shown in figure
4,
(Optional) set vmnet0 (if you only have one network card, you can use the default value. If you use multiple network cards, select the current network card. The specific method is to enable Vmware
Workstation 6.5 à edit à virtual net editor ..., The setting effect is as follows (I use the default setting ))
5. set IP address in Virtual Machine Linux: the setting result is as follows:
Note: Because I use the Intranet, you can select an intranet IP address.
6. Set DNS (for example, first select DNS items and then set them)
7. OK. Now the host is like a physical device, which can be pinged by an intranet reporter. Of course, the host can also access the internet.
Method 2: Nat
1. Install Vmware
2. Disable VMware network adapter vmnet1, enable VMware network adapter vmnet8, and view the IP configuration as shown in:
3. Use the default configuration above to view Nat in vmnet8 under Vmware
Settings, set the gateway IP address to the value such as 192.168.221.2. The third parameter in the middle of 192.168.221.2 can be set based on your own installation conditions. These parameters are usually set in the default configuration.
Is compatible with the VMware network adapter vmnet1 in the network connection, and does not need to be modified.
4. Enable vmware workstation 6.5. Set VM to Nat.
5,
Set the Linux IP address and use the gateway in step 1 as the gateway. Select an IP address under the CIDR block, for example, 192.168.221.100. Reactivate the instance.
Ping the host and access the internet. However, you cannot use this method to ping a VM from a local area network.
6. OK. The Nat-based Internet access settings are completed.
To share files, install VMware Tools directly and set the following interface: in this way, files in the corresponding directory can be accessed in Linux.