Examples of VMWare virtual machine port mapping and forwarding

Source: Internet
Author: User

1, into the following directory

The code is as follows Copy Code

/etc/vmware/vmnet8/nat/nat.conf

Edit this file, at the end of the file you can see:

The code is as follows Copy Code

[INCOMINGTCP]

# Use these and care-anyone can enter into your VM through ...
# The format and example are as follows:
#<external Port number> = <vm ' s IP address>:<vm ' s port number>
#8080 = 172.16.3.128:80

[INCOMINGUDP]

# UDP Port Forwarding Example
#6000 = 172.16.3.0:6001

This time it should be easy to see these examples, if I want to map virtual 3389 to 2000 ports, just add under [incomingtcp]

2000 = 172.16.3.128:3389

Then save the exit, the terminal executes:

The code is as follows Copy Code

/usr/bin/vmware-networks stop

/usr/bin/vmware-networks start

Finally do the verification, execution:

The code is as follows Copy Code

Netstat–lntp

See if there's a NO. 2000-port Monitor,

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.