Under the VMware Workstation virtual machine, Linux virtual confidential Internet, is generally bridged mode, but my own computer internet environment is different, too lazy to always configure the Linux network card information, so, set to NAT mode to share the real computer network card to the Internet.
There are mistakes or other big and small problems, welcome Dashin pointed out
The premise is that your virtual machine is a virtual machine created with VMware Workstation, and when you install VMware Workstation, you add two network cards to your system, a VMware network Adapter VMnet1 , a VMware network Adapter VMNET8, where VMware network Adapter VMnet8 is used.
Steps:
1. Change the NIC Vmwarenetwork Adapter VMNET8 to DHCP to obtain IP automatically.
2. Connect the network card of the Linux virtual machine to the VMware network Adapter VMnet8 NIC, such as:
3. Share the network card (wired network card or wireless network card) to the VMware Network Adapter VMnet8 network card; Open the NIC properties and share it. Such as:
4, at this time to view the connection details of Vmwarenetwork Adapter VMnet8 network card, this network card has been automatically obtained a 192.168.137.1/24 IP address, change it to manual, and the DNS is set to the physical machine Internet DNS, such as:
5, you can configure the network card IP address of the Linux virtual machine to the IP address of this segment of 192.168.137.X/24, the gateway is configured as the DNS address of 192.168.137.1;dns configured as the VMware Network Adapter VMNET8 network card , the Linux virtual machine should be able to ping the physical machine and the external network.
To this, the Linux virtual machine on the external network configuration complete!!!
VMware virtual machine Linux Internet http://www.linuxidc.com/Linux/2012-06/62067.htm via NAT
This article permanently updates the link address : http://www.linuxidc.com/Linux/2015-03/114491.htm
Virtual Linux under VMware Workstation sharing Internet via NAT mode