Recently in their own computer to make an Ubuntu server, do a little demo, when the need to connect to the network problems, unable to connect to the network, some of the online information is a stroke, does not conform to their own situation, and now the process of my solution recorded:
First, on your own Windows computer, under CMD, enter ipconfig
Note that this IP should be the same as the IP segment in the Linux network configuration, and then open the Virtual Network editor interface in VMware, under the Edit menu
Because the network adapter in my virtual machine settings is selected for NAT mode, this information is the virtual machine that is right-installed in the left sidebar of VMware, select settings
So check the VMNET8 in the Virtual network editor and modify the subnet IP information to meet IP IP segment same as Windows. My windows is 192.168.199.115, so this is set to 192.168.199.0, only in this setting, the next DCH IP segment and gateway IP can be set
Then make NAT settings
The gateway IP set here and my Windows computer's gateway IP is the same, click OK back to the Virtual Network editor interface, then the DCH settings, set the starting IP and end IP, this range set the network segment and Windows IP is a network segment
Then click on Confirm, then go back to the Virtual Network editor interface Click Confirm, restart the virtual machine, ping www.baidu.com has been able to ping, indicating that the external network has been opened
If it is not possible to check whether the/etc/network/interfaces is set correctly, the circle is the name of the network card, the box is the DHCP is automatically get Ip,static is the configuration of static IP, it is necessary to set address and other information, specify the IP address
There are DNS settings, in/etc/resolv.conf here I set the gateway address, can also be set to 114.114.114.114, etc., DNS server address
Ping Windows IP can also be ping-pass,
VMware on Ubuntu Server connection extranet