Environment:
HOST: Windows XP
VMWare Version: 4.5.1
Linux: Red Hat Linux 9
1. View network configuration information in the host
In the CMD dialog box, enter ipconfig to obtain the network configuration of the host (Windows XP), as shown in:
2. Configure virtual machines installed in VMware
In favorites, click your virtual machine, right-click the pop-up menu, and select "Edit ...", As shown in:
Select "Nat" in the "Network Connection" option ".
3. Configure Vmware
Open the "manage virtual networks" dialog box and select the "summary" option, as shown in:
We can see that vmnet8 is a NAT virtual network.
Select the "Nat" option and select vmnet8 as the drop-down box after the vmnet host, as shown in:
The gateway is 192.168.238.2, And the subnet mask (netmask) is 255.255.255.0.
Click "Edit…" next to vmnet host ..." Button to bring up a new window, as shown in:
You can reset the gateway address here. We recommend that you do not change the default value after installation.
4. Configure the Linux Network
Click the Start menu and select "system settings"> "network", as shown in:
The "network configuration" dialog box is displayed, as shown in:
Note: The figure shows that the network is configured. If the network is not configured, the status is displayed as "inactive ".
Double-click the "eth0" Nic under the device. The "Ethernet device" dialog box is displayed, as shown in. Select the static IP address and enter the gateway and subnet mask in "3. Configure VMware, assign another address to eth0: 192.168.238.6.
Click OK to save.
In the "Network Configuration" dialog box, select "DNS" and enter the same DNS as the host (Windows XP), as shown in:
V,After Linux is restarted, open the browser in Linux and enter the URL for testing. So far, the configuration of Linux and host internet sharing in VMware has been completed.