Three ways to connect to VMware networks

Source: Internet
Author: User

There are three ways to connect VMware Networks: Bridging, Nat,host-only. (When we finish installing VMware Workstation, it will help us install two virtual NICs, Vmnet1, and Vmnet8, respectively.) Vmnet1 corresponds to Host-only, vmnet8 corresponds to NAT)
first, the basic concept1. Bridging what is bridged connection, I make a metaphor, bridging is the equivalent of a brother is tied, that is, when using the bridge, the IP network segment of the virtual machine and the host network segment is the same. 2.NAT (Network address translation) NAT is the short name of translate, what is a NAT connection, NAT is equivalent to a parent-child relationship, that is, when using NAT, the local host is equivalent to the virtual machine's gateway. 3.host-only network visits between hosts and virtual machines, but virtual machines cannot access the Internet.
second, practical applicationLet's introduce how to use these three ways in practice: 1. Bridging 1.1) First, we select the bridging mode in network connection in the network adapter, set up with virtual machine.
1.2) Turn on the virtual machine and look at the next IP address (in this case, Ubuntu) the same network segment as the IP address of our host that can see its IP address.
1.3) The virtual machine can ping with the host, and can ping with the external network

2.NAT 2.1) Network connections in the network adapter, settings, virtual machines Select NAT Mode 2.2) View the IP address of the virtual machine is not the same as the network segment that can see the IP addresses of the virtual machine and the IP address of our host.
2.3) Here the virtual machine can also be implemented and host mutual ping and can be and the external ping pass.

3.host-only 3.1) Network connections in the network adapter, settings, virtual machines Select Host-only Mode 3.2) View the IP of the virtual machine is not the same as the network segment of the IP address of the virtual machine can be seen and the IP address of our host.
3.3) Turn on network and network Sharing Center, change adapter Select Wireless Card (also optional wired) change the wireless card properties

Change the network segment of the virtual machine to the same network segment as the Vmnet1



3.4) The host and the virtual machine can ping each other



The virtual machine and the host do not ping each other, it is not set within the same subnet segment. 3.5) You can use the SECURECRT remote connection virtual machine premise: virtual machines to install the SSH service and open this service (Apt-get installOpenssh-server)
not only host-only can use SECURECRT, bridging and NAT modes can also be used to remotely connect to virtual machines. (premise: All need to ping with the host)

third, frequently asked questions1. When we use NAT mode to find that the host and virtual machine ping does not work then we are going to check the next vmnet8 the IP address segment of this network card is the same as the IP address segment of our virtual machine.


We know that their IP address of the network segment is not the same, so that the ping does not pass, when we changed to the same network segment can be ping through.

2. In NAT mode, when our host can surf the internet and the host can ping the virtual machine, but the virtual machine ping does not pass the host, and the virtual machine can not access the Internet solution (Vmnet8 network segment is the same network segment)



The problem may be that the VMware NAT service and the VMware DHCP service are not turned on.
At This point we open the two services can be a virtual machine can ping the host and the Internet.


When we can't go to the net or ping anyway, there is another way to try this: open edit----Virtual network editor, click Restore default settings.


Three ways to connect to a VMware network

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.