Home > Vmware > VMware Server 2 Advanced NAT

VMware Server 2 Advanced NAT


If you decide to use NAT’d networking for your VMware Server 2.x.x. guest OS you will want to create some port mapping to access the guest with the likes of SSH.  This documents the procedure for creating the needed mapping and uses SSH as an example.  In this document it’s assumed you have VMNet8 configured as your NAT network interface.  If you configured NAT during the installation and configuration of VMware Server 2.x.x and chose the default it will be VMNet8.

Adding a NAT Network Interface

If you did not add a NAT network interface during your VMware Server 2.x.x installation and configuration you may do it now by invoking the following command.

# /usr/bin/vmware-config.pl

Edit nat.conf

Open the file /etc/vmware/vmnet8/nat/nat.conf for editing.  In our example we will add three guest OS’s for SSH access via port mapping.  Most likely there is an example already for SSH under the [incomingtcp] section.  Under this section is where all incoming TCP traffic will be mapped.

Here are the three mappings for SSH access to our three guest OS’s.

8889 =
8890 =
8891 =

Restart VMNet 8

Next you have to restart VMNet 8 for the changes to take affect.

# /usr/lib/vmware/net-services.sh restart 8

Try Your New Port Mappings

To gain access, if for example your VMware Server 2.x.x’s IP is, you would perform the following for our first guest OS:

# ssh -p 8889 user@

Be sure your VMware Server’s ports are open in the firewall for, as in our example, 8889, 8890 and 8891 and of course port 22 for all the guests.

It’s important to note that if you run the configuration script for any reason your port mapping may get overwritten by the default nat.conf file.  Your port mappings are backed up to a file similar to this: nat.conf.old.0.

This should take care of SSH access to NAT’s VMware Server 2.x.x guest OS’s.  If you have any comments, we would like to hear from you.

Categories: Vmware Tags:
  1. DOgi
    May 25th, 2010 at 19:23 | #1

    Is it possible to forward port range?

  2. October 16th, 2011 at 06:11 | #2

    WONDERFUL Post.thanks for share..extra wait .. ?

  1. No trackbacks yet.