After VMware is installed, there will be two default NICs, VMnet8 (192.168.232.1) and VMnet1 (192.168.117.1). Of course, the IP addresses of these two NICS will be different on different machines. In windows, these two NICs can be set to automatically obtain IP addresses. You can view the IP address. At the same time, we must also select VMware with two Network Connection Methods: Bridged and NAT. The former requires that the XP broadband connection (ADSL) be set to the sharing mode.
After VMware is installed, there will be two default NICs, VMnet8 (192.168.232.1) and VMnet1 (192.168.117.1). Of course, the IP addresses of these two NICS will be different on different machines.
In windows, these two NICs can be set to automatically obtain IP addresses. You can view the IP address. At the same time, we must also select VMware with two Network Connection Methods: Bridged and NAT. The former requires that the XP broadband connection (ADSL) be set to the sharing mode for use. This topic describes the NAT mode.
Windows Settings:
View the attributes of your Nic connected to the Internet, select the "advanced" tab, set to allow sharing, and set the allowed network interface to VMNET8 (NAT) (if it is bridge, it must be (VMNET1)
The VMNet8 Nic used in NAT mode mainly needs to know two important IP addresses: Gateway and DNS.
The first address (192.168.232.1) is a static address allocated to the VMware Network Adapter VMnet8 Adapter of the host computer Xp.
The second IP address (192.168.232.2) is a static IP address allocated to the NAT device.
(192.168.232.3 to 192.168.232.127) static address, retained.
(192.168.232.128 to 192.168.232.254): IP address range of the DHCP scope, which is allocated to virtual machines.
Vmware settings
Set the network connection mode for Ubuntu network configuration in Vmware and select NAT
The IP address can be viewed Through vmware> edit> virtual networking settings. The default gateway is very important at this time.
Ubuntu network configuration settings:
Modify the Ubuntu Network Configuration:
System> network> select etho and set the IP address to be automatically obtained. Add DNS and add Dynamic DNS obtained by nat in vmware
1) set the IP address, gateway, and mask. Add the following content to sudo gedit/etc/network/interfaces:
Iface eth0 inet static
Address 192.168.232.200
Netmask 255.255.255.0
Gateway 192.168.232.2
Auto eth0
2) Add DNS, sudo gedit/etc/resolv. conf, and add the following content:
Nameserver 192.168.232.2
If the resolve. conf file is not found in the etc folder, a new
3) effective: sudo service networking restart
4) if the broadband connection of XP is OK, test whether the Ubuntu network configuration is OK. For example, ping www.6688.cc
The above describes the Ubuntu network configuration.