Contents

Previous Next

Using Virtual Ethernet Adapters in Promiscuous Mode on a Linux Host
VMware Workstation does not allow the virtual Ethernet adapter to go into promiscuous mode unless the user running VMware Workstation has permission to make that setting. This follows the standard Linux practice that only root can put a network interface into promiscuous mode.
When you install and configure VMware Workstation, you must run the installation as root. VMware Workstation creates the VMnet devices with root ownership and root group ownership, which means that only root has read and write permissions to the devices.
To set the virtual machine's Ethernet adapter to promiscuous mode, you must launch VMware Workstation as root because you must have read and write access to the VMnet device. For example, if you are using bridged networking, you must have access to /dev/vmnet0.
To grant selected other users read and write access to the VMnet device, you can create a new group, add the appropriate users to the group and grant that group read and write access to the appropriate device. You must make these changes on the host operating system as root (su). For example, you can enter the following commands:
chgrp <newgroup> /dev/vmnet0
chmod g+rw /dev/vmnet0
<newgroup> is the group that should have the ability to set vmnet0 to promiscuous mode.
If you want all users to be able to set the virtual Ethernet Adapter (/dev/vmnet0 in our example) to promiscuous mode, you can simply run the following command on the host operating system as root:
chmod a+rw /dev/vmnet0
Understanding NAT Understanding NAT
Network address translation—or NAT—provides a simple way for virtual machines to use most client applications over almost any type of network connection available to the host. The only requirement is that the network connection must support TCP/IP.
NAT is useful when you have a limited supply of IP addresses or are connected to the network through a non-Ethernet network adapter. NAT works by translating addresses of virtual machines in a private VMnet network to that of the host machine. When a virtual machine sends a request to access a network resource, it appears to the network resource as if the request came from the host machine.
NAT uses the host's own network resources to connect to the external network. Thus, any TCP/IP network resource to which the host has access should be available through the NAT connection.
The chief advantage of NAT is that it provides a transparent, easy to configure way for virtual machines to gain access to network resources.
This section discusses the following topics:
  • Using NAT
  • The Host Computer and the NAT Network
  • DHCP on the NAT Network
  • DNS on the NAT Network
  • External Access from the NAT Network
  • Advanced NAT Configuration
  • Custom NAT and DHCP Configuration on a Windows Host
  • Considerations for Using NAT
  • Using NAT with NetLogon
  • Sample Linux vmnetnat.conf File

  • Previous Next

    © 1998-2005 VMware, Inc. All rights reserved.