VMware Workstation 5.5Features | Documentation | Knowledge Base | Discussion ForumsAdvanced NAT ConfigurationWindows HostConfigure the NAT device using the virtual network editor (Edit > Virtual Network Settings > NAT). You can stop and start the virtual NAT device by clicking the appropriate buttons. To edit NAT settings for a virtual network, choose it from the drop-down menu, then click Edit. Change any NAT settings you wish. Click the appropriate button to set up or change port forwarding or to specify DNS servers the virtual NAT device should use. Linux HostUse the NAT configuration file on the host to configure the NAT device. This file is /etc/vmware/vmnet8/nat/nat.conf. The configuration file is divided into sections. Each section configures a part of the NAT device. Text surrounded by square brackets such as [host] marks the beginning of a section. In each section is a configuration parameter that can be set. The configuration parameters take the form ip = 192.168.27.1/24. For an example of a NAT configuration file, see Sample Linux vmnetnat.conf File. The configuration file variables are described below. The [host] Section
ip
netmask
configport
device
activeFTP The [udp] Section
timeout The [dns] SectionThis section is for Windows hosts only. Linux does not use this section.
policy
timeout
retries
autodetect
nameserver1
nameserver2
nameserver3 If autodetect is on and some name servers are specified, the DNS servers specified in nameserver1, nameserver2 and nameserver3 are added before the list of detected DNS servers. The [netbios] SectionThis section applies to Windows hosts only. Linux does not use this section.
nbnsTimeout = 2
nbnsRetries = 3
nbdsTimeout = 3 The [incomingtcp] SectionThis section is used to configure TCP port forwarding for NAT. In this section, you can assign a port number to an IP address and port number on a virtual machine. The following line shows the format used in this section. 8887 = 192.168.27.128:21 This example creates a mapping from port 8887 on the host to the IP address 192.168.27.128 and port 21. When this mapping is set and an external machine connects to the host at port 8887, the network packets are automatically forwarded to port 21 (the standard port for FTP) on the virtual machine with IP address 192.168.27.128. The [incomingudp] SectionThis section is used to configure UDP port forwarding for NAT. In this section, you can assign a port number to an IP address and port number on a virtual machine. The following line shows the format used in this section. It illustrates a way to forward X server traffic from the host port 6000 to the virtual machine's port 6001. 6000 = 192.168.27.128:6001 This example creates a mapping from port 6000 on the host to the IP address 192.168.27.128 and port 6001. When this mapping is set and an external machine connects to the host at port 6000, the network packets are automatically forwarded to port 6001 on the virtual machine with IP address 192.168.27.128. |

