How to ping virtual machines on VMware out of the network (illustrated tutorial)

Source: Internet
Author: User

Recently encountered a problem in the internship program.

Due to test needs, I installed VMware on the Win7 after two ubuntuserver. The network configuration of both hosts is connected in a NAT manner.

Then the road is unblocked. The host pings the virtual machine and the external network, and the virtual machines ping each other through. And ping through the host and the outside network.

Because of the need for external client access to Ubuntu services. You need to visit a specific port run program. But it has not been ping ... The request of senior and Gotodo Niang, adopted the following methods to conquer, sharing programs.


Analysis Reasonbecause the virtual machine adopts the NAT method, its network address is the main subnet network. Access to the external network naturally first go to the gateway and then step on the shoulders of the mainframe can be careless and casually visit the outside network. But the extranet could not find the virtual machine network port, but we could find the Win7 host. Therefore, we use the host Win7 to do the port forwarding agent.
Workaround(1) Open the VMware software and select "edit" → "virtual network editor"

(2) After selecting Nat mode, click on "Nat Settings (S) in the vmnet message". For NAT Configuration

(3) After entering NAT settings. Click "Join" to join Port forwarding

(4) Fill in the forwarding information after entering the join page
the information in the picture is as follows: When the extranet wants to access the content of "192.168.204.129:3000". Because of the access to 192.168.204.129, so visit "< host ip>:<5050>" to replace.

It also means that 5050 of port exposure on the host is actually linked to the contents of the virtual machine.

(5) successfully joined Port forwarding. Available for interview

In accordance with the above, it is usually possible to successfully access the program on the virtual machine. However, some hosts may not have access to resources because of firewall restrictions, so we can take the following approach.


(1) Open "control Panel" → "Windows Firewall", click "Advanced Settings"

(2) Click on "Inbound Rules" in the top left corner, then click "New Rule" in the upper right corner.

(3) Select "Port" and click "Next"

(4) Select "TCP" (depending on the actual situation). In the "specifically to local port (S)" Write the need to access the port. Click "Next"

(5) "Consent to connect" is selected by default. Click "Next" and then continue to "next "

(6) Fill in "Name", "Descriptive narrative", click "Complete"

This completes all configuration work.




How to ping virtual machines on VMware out of the network (illustrated tutorial)

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.