1. IP vmware the two cards are set to get their own way to get
The IP vmware when the two cards are set to get their own way get, IP in many cases these two cards will automatically give you a default IP address when installing vmware, I just started to do so because there is no modification I have not led to success, and later discovered here have to automatically obtain IP, otherwise it will not connect the gateway router open network and sharing Center network, modify these two card ip acquisition mode
2. Set VMWare network adapters mode
VM-> Settings-> Select the bridge mode
3. Modify the ubuntu network ip addresses to DHCP
(Note: Static IP mode can not access the internet)
sudo gedit /etc/network/interfaces
DHCP mode:
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
Static IP mode:
auto lo iface lo inet loopback iface eth0 inet static address 192.168.16.11 netmask 255.255.255.0 gateway 192.168.16.1 dns-nameservers 192.168.16.1 auto eth0
4. Restart ubuntu card
sudo /etc/init.d/networking restart
5. Test
Intranet: ping 192.168.16.1
Extranet: ping www.baidu.com
OK, now ubuntu on your virtual machine can communicate outside the windows it!
Reproduced in: https: //www.cnblogs.com/davidgu/archive/2013/01/22/2871738.html