Nat network settings in Ubuntu in VMware
Network Configuration:
After VMware is installed, there will be two default NICs, vmnet8 (192.168.83.1) and vmnet1 (192.168.19.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)
(If a network interface is previously set up, cancel sharing. Close the dialog box and re-open the Advanced tab to reset it)
The vmnet8 Nic used in Nat mode mainly needs to know two important IP addresses: Gateway and DNS.
(The key is subnet: 192.168.83.0, or other factors such as 192.168.195.0. The following network management and DNS must be changed)
The first address (192.168.83.1) is a static address allocated to the VMware network adapter vmnet8 adapter of the host computer XP.
The second address (192.168.83.2) is a static address allocated to the NAT device.
(192.168.83.3 to 192.168.83.127) static address, retained.
(192.168.83.128 to 192.168.83.254): IP address range of DHCP scope, allocated to virtual machines.
VMware settings
Set the network connection mode of ubuntu 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 settings:
Modify the network configuration of Ubuntu:
System> network> select etho and set the IP address to be automatically obtained. Add DNS and add Dynamic DNS obtained by Nat in VMware
You can also set it directly on the graphic interface,
1) set the IP address, gateway, and mask. VI/etc/Network/interfaces, add the following content:
Iface eth0 Inet static
Address 192.168.83.200
Netmask 255.255.255.0
Gateway 192.168.83.2
Auto eth0
2) Add DNS, VI/etc/resolv. conf, and add the following content:
Nameserver 192.168.83.2
3) effective:/etc/init. d/networking restart
4) if the broadband connection of XP is OK, test whether Ubuntu is OK. For example, Ping www.sky8848.cn