VMware ESXi and vSphere Cluster Management

VMware Player Virtual Networking Components: Switches, Adapters, DHCP, and NAT

Learn how VMware Player VMnet switches, virtual adapters, DHCP, NAT, bridged, host-only, and NAT networking connect virtual machines.

VMware Player networking combines several software components to give a virtual machine network connectivity. The most important components are the virtual network adapter presented to the guest, the VMnet virtual switch, the virtual DHCP service, and the NAT device.

These components imitate familiar physical networking roles, but they operate on the host computer. A guest adapter attaches to a VMnet network, and the selected connection mode determines whether the guest can reach the host, other guests, the physical LAN, or external networks. DHCP may assign the guest its address, while NAT may provide outbound connectivity.

This lesson explains the component relationships and provides practical guidance for choosing a mode. For related configuration work, see VMware virtual networking components.

Core VMware Player networking components

ComponentWhere it operatesFunctionUsed by which modesCommon dependency
Virtual switchOn the hostConnects virtual network interfaces on one VMnet segment and may connect that segment to the host or an external interface.All modesCorrect VMnet attachment and network design
Guest virtual network adapterInside the VM and exposed to the guest OSActs as the guest's network interface and connects it to a selected VMnet.All modesA suitable guest driver and enabled adapter
Virtual DHCP serverOn the hostAutomatically supplies IP configuration to guests on applicable private VMnet networks.Normally host-only and NATDHCP service enabled for the selected VMnet
NAT deviceOn the hostTranslates and forwards traffic between a private NAT VMnet and external networks.NATWorking NAT service and host uplink

The end-to-end relationship is straightforward:

  1. A virtual machine contains one or more virtual network adapters.
  2. Each adapter is attached to a virtual network, usually identified by a VMnet number.
  3. The VMnet behaves like a software switch or network segment.
  4. The selected mode determines whether the segment connects to the host, a physical adapter, or a NAT device.
  5. DHCP can provide addresses and related settings on private networks.
  6. Guest and host firewalls still decide whether particular traffic is allowed.

VMnet virtual switches and network segments

A virtual switch is software that forwards frames between connected virtual network interfaces. Depending on its configuration, it can connect guest adapters to one another, to a host-side VMware adapter, or to a physical host network adapter.

VMnet is VMware's naming convention for a virtual network or virtual switch segment. The VMnet number identifies the network segment, not an individual guest adapter. Several virtual machines can attach their adapters to the same VMnet.

Common default VMnet mappings

VMnet nameDefault connection typePrimary participantsDHCP sourceExternal network accessTypical use
VMnet0BridgedGuests, the selected host physical adapter, and the physical LANNormally the physical LAN DHCP serverThrough the physical LANMaking a guest appear as a peer on the LAN
VMnet1Host-onlyGuests on VMnet1 and the hostNormally VMware virtual DHCPNone by defaultPrivate practice networks and host-to-guest administration
VMnet8NATGuests, the private VMnet, the VMware NAT device, and the host uplinkNormally VMware virtual DHCPOutbound access through the hostInternet access without direct LAN addressing

Additional numbered VMnet networks can be used for custom designs. For example, separate custom VMnets can represent an internal server segment, a management segment, and an isolated malware-analysis segment. A multi-segment lab still needs routing or a router VM if traffic must cross between those segments.

Historically, Windows hosts supported up to 20 virtual switches, while Linux hosts supported up to 255. The historical attachment limit was unlimited virtual network devices per virtual switch on Windows and up to 32 on Linux. A single virtual machine historically supported up to 10 virtual network adapters. These figures are product-dependent: supported limits and available network-editor options can vary by VMware release, edition, and host operating system.

Connection modes

Bridged networking

In bridged networking, the VM connects through a selected physical network connection on the host. VMnet0 normally represents this mode. The guest behaves like another device on the physical LAN and normally receives an address from the physical network's DHCP server.

Because the guest is an apparent LAN peer, other LAN systems may be able to initiate connections to it. Physical-network policy, guest firewalls, host firewalls, VLANs, wireless limitations, VPN software, corporate network admission control, and MAC-address restrictions can change this behavior.

Host-only networking

Host-only networking creates a private network for the host and VMs connected to the same host-only VMnet. VMnet1 normally represents this mode. Guests on that segment can communicate with one another and with the host, subject to IP configuration and firewall rules.

Host-only networking does not provide external routing by default. It is useful for isolated training environments, private service testing, and host-to-guest administration. It is not automatically a complete security boundary: a compromised host, a routing configuration, or a multi-homed guest could provide another path.

NAT networking

NAT networking places guests on a private network, normally VMnet8. The VMware NAT device translates guest traffic as it leaves that private network and forwards it through the host's external connection.

The external network normally sees the host's network identity rather than a separately addressed guest. Multiple guests can therefore use private IP addresses while sharing the host's outbound connectivity. Return traffic is tracked and delivered to the guest that initiated the flow.

Unsolicited inbound connections from external systems do not normally reach a NAT guest. To publish a service, create a port-forwarding rule that maps a host-side port to the guest's IP address and service port. The guest and host firewalls must also permit the connection.

Mode comparison

ModeGuest address sourceGuest visibility on physical LANHost-to-guest connectivityGuest outbound internet accessInbound access considerationsBest-fit scenario
BridgedPhysical LAN DHCP or valid LAN static configurationUsually visible as an independent LAN deviceUsually possible through the LAN and host networkingUsually available through the LANMay be directly reachable, subject to LAN and firewall policyLAN-peer testing and services that need direct LAN reachability
NATNormally VMware DHCP on the NAT subnet, or a valid NAT-subnet static addressNot normally visible as an independent LAN deviceNormally possible from the host, subject to firewall rulesNormally available through the NAT deviceRequires port forwarding or comparable NAT configurationOrdinary outbound internet access with reduced direct exposure
Host-onlyNormally VMware DHCP on the host-only subnet, or a compatible static addressNot visible on the physical LAN by defaultAvailable to the host and same-VMnet guestsUnavailable by defaultLimited to the private segment unless routing is deliberately addedIsolated labs and private host-to-guest communication

Virtual network adapters

A virtual network adapter, also called a virtual NIC, is the network interface presented to the guest operating system. It is similar to a physical Ethernet adapter from the guest's perspective.

VMware Player normally creates an adapter when a VM is created. In the VM's network adapter settings, you can select Bridged, NAT, Host-only, or a specific custom VMnet when supported. The adapter should be connected and configured to connect when the VM starts.

Common emulated adapter types include the AMD PCnet PCI Adapter and the Intel PRO/1000 MT Server Adapter. The guest operating system needs a suitable driver for the selected emulated hardware. A missing or incompatible driver can make the adapter appear absent even when the VMware setting is correct.

A VM historically supported up to 10 virtual network adapters. Multiple adapters are useful when a VM performs a routing or firewall role. For example, one adapter can connect to an upstream NAT or bridged segment, while a second adapter connects to an internal host-only or custom VMnet segment.

Do not confuse the guest-facing virtual NIC with host-side VMware adapters. A guest NIC is hardware presented inside the VM. A host-side VMware adapter is an interface in the host operating system that may provide the host with access to a host-only or NAT network.

Virtual DHCP service

DHCP, the Dynamic Host Configuration Protocol, automatically distributes network settings. A DHCP response can provide an IP address, subnet mask, default gateway, lease duration, and DNS server information.

The VMware virtual DHCP service normally supplies addresses on host-only and NAT VMnet networks. This is why those networks can function without a physical LAN DHCP server. The DHCP service assigns addresses from the configured subnet, while the NAT device separately provides translated outbound connectivity on a NAT network.

Bridged guests normally obtain addresses from the physical LAN's DHCP server. Alternatively, they can use a static address that is valid for that LAN and approved by its administrator.

Static addressing

Static configuration is an alternative when a stable address is needed or DHCP is unavailable. The address, subnet mask or CIDR prefix, default gateway, and DNS servers must match the selected VMnet or physical LAN. Avoid duplicate addresses, and do not use a NAT or host-only address outside that network's configured subnet.

NAT device and port forwarding

Network Address Translation changes address information as traffic crosses between networks. The VMware NAT device forwards guest-originated traffic from the private NAT VMnet to external networks through the host's uplink.

  1. The guest sends traffic using its private source address and the NAT network's default gateway.
  2. The NAT device changes the source information to an available host-side identity and records the flow.
  3. The host sends the translated traffic through its physical or other external connection.
  4. When a reply returns, the NAT device consults its flow state and translates the reply back to the correct guest.

With bridging, the guest can have its own physical-LAN address, so external systems may connect directly if routing and firewall policy permit. With NAT, external systems normally cannot initiate a new connection to the private guest. Port forwarding creates an exception by mapping a host-facing port and protocol to a guest IP address and service port.

Traffic-flow examples

Host-only traffic

A VM attached to VMnet1 sends an Ethernet frame to the host-only virtual switch. If the destination is another VM on VMnet1, the switch delivers the frame to that VM's adapter. If the destination is the host, the frame is delivered to the host-side VMware adapter. No external router is involved in this local path.

NAT outbound traffic

A NAT guest receives a private address from VMware DHCP on VMnet8. For an external destination, the guest sends the packet to its VMnet8 gateway. The VMware NAT device translates the packet, sends it through the host uplink, and tracks the flow so the response returns to the originating guest.

Bridged traffic

A bridged guest sends traffic through its adapter to VMnet0. VMnet0 passes it through the selected physical host adapter to the physical LAN. The guest can use the LAN's addressing and routing rules as though it were another connected device.

Two VMs communicate only when their switching or routing design, VLAN configuration, IP addresses, routes, and firewall rules permit communication. Sharing a host does not by itself place two VMs on the same network.

Practical configurations

NAT internet-capable test VM

  1. Open the VM's network adapter settings.
  2. Select NAT, normally VMnet8.
  3. Confirm that the adapter is connected and set to connect at VM startup.
  4. Use VMware DHCP, or configure a valid static address in the NAT subnet.
  5. Test the guest's address, gateway, DNS resolution, and an external destination in that order.

Server visible on the physical LAN

  1. Select Bridged, normally VMnet0.
  2. Choose the appropriate physical host adapter if several uplinks are available.
  3. Use the physical LAN's DHCP service or an approved static LAN configuration.
  4. Apply guest service and firewall settings deliberately, because the VM may be reachable by other LAN systems.

Isolated host-and-guest training network

  1. Attach the participating VMs to Host-only, normally VMnet1.
  2. Use VMware DHCP or compatible static addresses.
  3. Test host-to-guest and guest-to-guest communication on the same VMnet.
  4. Expect no external connectivity unless routing is intentionally added.

Two-interface router or firewall lab

  1. Add two virtual adapters to the router or firewall VM.
  2. Attach the upstream adapter to NAT or bridged networking.
  3. Attach the internal adapter to host-only or a custom VMnet.
  4. Configure routing, firewall rules, and IP forwarding intentionally in the guest.
  5. Attach internal client VMs to the internal VMnet and test each policy path.

Publishing a service from a NAT guest

  1. Run a test service such as SSH or a web server in the NAT guest.
  2. Give the guest a stable NAT-subnet address through a reservation or static configuration.
  3. Create a NAT port-forwarding rule from a host port to the guest IP and service port.
  4. Allow the service through the guest firewall and, when necessary, the host firewall.
  5. Test locally from the host before testing from an authorized remote client.

Useful guest commands

Use these commands to identify the active adapter, address, prefix or mask, route, gateway, and DNS configuration. Run the commands inside the guest operating system.

Windows guest
ipconfig /all
ping <gateway-address>
nslookup <hostname>

Linux guest
ip addr
ip route
ping -c 4 <gateway-address>
resolvectl status

Some Linux distributions do not use systemd-resolved, so DNS inspection may require the distribution's own network-management command or configuration files.

Choosing a network mode

  • Choose bridged when the guest must operate as a peer on the physical LAN or receive direct LAN reachability.
  • Choose NAT for typical outbound internet access while reducing the guest's direct exposure to the external network.
  • Choose host-only for isolated practice networks, host-to-guest administration, and private multi-VM exercises.
  • Choose a custom VMnet when a lab needs separate network segments, controlled routing, or repeatable testing boundaries.

In every mode, check both the guest and host firewalls. A successful DHCP lease does not prove that application traffic is allowed, and a successful ping does not prove that a service port is reachable.

Troubleshooting workflow

Private guest has an address but cannot reach expected destinations

  • Confirm the selected mode and VMnet attachment.
  • Inspect the guest address, prefix, route, gateway, and DNS settings.
  • Test the gateway first, then an external IP address, and then DNS name resolution.
  • For NAT, verify the NAT service. For host-only, confirm that external routing was not incorrectly expected.
  • Check VMware networking services, host firewall rules, VPN software, proxy settings, and endpoint security controls.

Bridged guest cannot obtain a physical-LAN address

  • Verify that the guest uses bridged mode and the intended physical adapter.
  • Confirm that the host itself has connectivity through that adapter.
  • Check physical DHCP availability.
  • Consider wireless, VPN, NAC, MAC filtering, VLAN policy, and corporate virtualization restrictions.
  • Use a static LAN configuration only when it is valid and permitted.

Host-only guest cannot access the internet

This is normally expected. Confirm whether the VM should use NAT instead. If external access is required while retaining a private segment, add and configure an intentional router path, such as a separate router VM.

External client cannot reach a NAT service

  • Confirm that the service works inside the guest and listens on the expected interface and port.
  • Verify the guest's current NAT IP address.
  • Check the port-forwarding protocol, host port, target IP, and target port.
  • Allow the service through guest and host firewalls.
  • Test from the host first, then from an authorized remote client.

Two VMs cannot communicate

  • Compare their VMnet attachments.
  • Compare their addresses, prefixes, and routing tables.
  • Confirm that a router exists when the VMs are on different subnets.
  • Check guest firewall rules and test the actual service port, not only ICMP.
  • For a multi-NIC VM, inspect route metrics and interface selection.

Key points

  • VMware Player virtual networking runs on the host but presents familiar network roles to the guest.
  • A guest adapter must attach to a VMnet virtual switch or segment.
  • Bridged mode places the guest on the physical LAN, NAT provides private outbound connectivity, and host-only provides a private host-and-guest segment.
  • VMware virtual DHCP normally serves host-only and NAT networks, while bridged guests normally use physical-LAN DHCP.
  • NAT does not normally permit unsolicited inbound connections without port forwarding.
  • Multiple adapters and custom VMnets allow router, firewall, and multi-segment laboratory designs.
  • Connectivity always depends on correct IP configuration, routing, switching, VLAN policy, and firewall rules.