VMware Networking and ESXi Network Explained: VMware Virtual Machine Networking, Networking with VMware, and Networking VMware Virtual Machines — Complete Guide
Networking in VMware defines how virtual machines communicate with each other, the host, and external networks. In Workstation, this comes down to modes like Bridged, NAT, Host‑Only, and Custom, each mapping VM traffic differently to the host NIC. In ESXi, networking is built on vSwitches, port groups, uplinks, and VMkernel adapters, with support for VLANs, NIC teaming, and distributed switching. Together, these models provide the flexibility to design lab setups or production‑grade architectures with performance, segmentation, and resilience in mind.
VMware in Networking: How Virtual Networking Works
🌉 The Physical‑to‑Virtual Network Bridge
Physical networking connects servers, storage, and clients through switches and routers using copper or fiber links. VMware virtualizes this stack inside the hypervisor, allowing administrators to design complex networks entirely in software. For example, a single ESXi host with four physical NICs can present dozens of isolated virtual networks to hundreds of VMs — each with its own VLAN assignments, traffic shaping rules, and security policies — without requiring changes to the physical switch configuration.
The VMware virtual network stack mirrors physical concepts in software:
- 🖧 Physical adapters (vmnics) map to physical switch ports.
- 🔀 Virtual switches (vSwitches) act as Layer 2 switches.
- 🏷️ Port groups replace VLANs for segmentation.
- ⚙️ VMkernel adapters handle host‑level traffic such as management, vMotion, and storage.
Understanding this mapping is the foundation of every VMware networking decision, ensuring that virtual machines communicate reliably while maintaining segmentation, performance, and security.
📊 VMware Networking Component Reference Table
| Component | Physical Equivalent | Role in VMware Networking |
|---|---|---|
| vmnic | Physical NIC port | Physical uplink from ESXi host to physical switch |
| vSwitch (vSS) | Physical L2 switch | Software switch forwarding traffic between VMs and uplinks |
| vDS | Managed L2 switch with central config | Cluster-wide virtual switch configured once in vCenter |
| Port group | Switch VLAN / access port | Configuration template applied to a group of virtual ports |
| VMkernel adapter (vmk) | Server management NIC | ESXi host-level interface for management, vMotion, storage, vSAN |
| Uplink port | Physical switch uplink | Connects vSwitch to vmnic for external traffic |
| VLAN tagging (802.1Q) | Trunk port / VLAN | Logical traffic separation on shared physical infrastructure |
| VXLAN (logical switch) | Overlay network | Layer 2 tunneling over Layer 3 for multi-datacenter VM mobility |
ESXi Networking Architecture: The Full Stack
⚙️ VMkernel: The OS Inside ESXi That Powers All Networking
The VMkernel is the specialized POSIX‑like operating system core of ESXi. It abstracts physical hardware and manages CPU, memory, storage, and networking for all VMs on the host. Every ESXi network operation flows through VMkernel:
- 🔄 VM‑to‑VM traffic on the same host stays within the vSwitch, never touching physical hardware.
- 🌐 VM‑to‑external traffic exits through physical uplinks, scheduled by VMkernel’s packet scheduler.
- 🛠️ Host management traffic uses VMkernel adapters with dedicated IP addresses for vCenter, SSH, and APIs.
VMkernel also powers advanced features like Distributed Resource Scheduler (DRS) and vMotion. Without a VMkernel management adapter, an ESXi host cannot be managed by vCenter at all — making VMkernel the critical control plane for both VM and host networking.
📊 VMkernel Adapter Types and Services
| VMkernel Adapter | Service | Traffic Type | Required For |
|---|---|---|---|
| vmk0 (default) | Management | vSphere Client, SSH, API | All ESXi hosts — created at installation |
| vMotion VMkernel | vMotion | Live VM migration data | vMotion between hosts |
| vSAN VMkernel | vSAN | vSAN cluster storage traffic | vSAN deployments |
| iSCSI VMkernel | iSCSI | Software iSCSI initiator traffic | iSCSI software storage |
| NFS VMkernel | NFS | NFS datastore mounts | NFS storage datastores |
| FT Logging VMkernel | Fault Tolerance | VM state replication for FT | Fault Tolerance (requires 10GbE+) |
| Replication VMkernel | vSphere Replication | Replication data stream | vSphere Replication / SRM |
🌐 Physical Adapters (vmnics): The Bridge to the Physical Network
Physical network adapters on ESXi hosts are identified as vmnic0, vmnic1, vmnic2, etc. — numbered in the order the host BIOS enumerates them. A vmnic maps directly to a physical NIC port and connects to a physical switch.
- 🔗 Uplink assignment → When a vmnic is assigned to a vSwitch as an uplink, all traffic destined for external networks exits through that vmnic.
- ⚡ NIC teaming → Multiple vmnics assigned to the same vSwitch create redundancy and optional load balancing.
- 🚫 One‑to‑one mapping → A vmnic can only be assigned to one vSwitch at a time; sharing across vSwitches is not possible.
- ✅ Best practice → Dedicate separate vmnics to distinct traffic types (management, vMotion, VM production, storage) to prevent workloads from competing for the same physical bandwidth.
This physical‑to‑virtual bridge is the foundation of ESXi networking, ensuring that virtual switches can scale while maintaining performance and isolation across workloads.
VMware Virtual Networking: vSwitch Types Explained
🔧 vSphere Standard Switch (vSS): Per‑Host Configuration
The vSphere Standard Switch (vSS), often simply called a vSwitch, is a software Layer 2 switch configured independently on each ESXi host. One vSwitch (vSwitch0) is created automatically during ESXi installation — it contains the default “VM Network” port group for VM traffic and the “Management Network” port group for the host’s VMkernel management adapter.
- 📡 MAC learning → A vSS only knows the MAC addresses of VMs and VMkernel adapters directly connected to it. Unlike physical switches, it does not learn external MACs and drops frames with unknown destinations instead of flooding them.
- ➕ Multiple vSwitches → You can create multiple vSwitches per host, each with its own uplinks, port groups, and policies.
- ⚙️ Use case → Ideal for smaller environments or hosts managed individually without vCenter.
🌍 vSphere Distributed Switch (vDS): Cluster‑Wide Central Management
The vSphere Distributed Switch (vDS) spans multiple ESXi hosts and is centrally configured in vCenter Server. When a vDS is created, identical hidden proxy switches are deployed to each member host.
- 🔄 Centralized port groups → Distributed port groups (dvPortgroups) created on the vDS are automatically propagated to all member hosts, eliminating manual per‑host configuration.
- 🚀 Exclusive features → Private VLANs, per‑VM NIC load balancing, Network I/O Control, LLDP support, SR‑IOV direct NIC access, and VM network state preservation across vMotion.
- 📋 Licensing → Requires vCenter Server and Enterprise Plus licensing. Standard and Essentials Plus editions only include vSS.
- ⚙️ Use case → Best for large clusters where consistent networking policies and advanced features are required.
📊 Standard Switch vs. Distributed Switch: Which to Deploy
| Feature | vSS (Standard Switch) | vDS (Distributed Switch) |
|---|---|---|
| Configuration scope | Per-host (manual per ESXi) | Cluster-wide (single config in vCenter) |
| License required | Any vSphere license | Enterprise Plus |
| vCenter required | No | Yes |
| Port groups | Per-host port groups | Distributed port groups (propagated to all hosts) |
| Private VLANs | No | Yes |
| Per-VM NIC teaming | No | Yes |
| Network I/O control | No | Yes |
| LLDP support | No | Yes |
| SR-IOV | No | Yes |
| vMotion network state | Lost (VM reconnects to port group) | Preserved (VM stays on same dvPort) |
| Traffic shaping | Outbound only | Inbound + outbound |
| Maximum hosts | Per-host only | 2,000 hosts per vDS |
| Management complexity | Simple | Moderate (requires vCenter expertise) |
VMware Networks: Port Groups, VLANs, and Traffic Segmentation
🏷️ Port Groups: Configuration Templates for Network Segmentation
A port group is a configuration template applied to a set of virtual ports on a vSwitch. Every VM connects to the network through a port group - never directly to the vSwitch. Port groups define:
- 🔖 VLAN ID → for traffic tagging.
- 🛡️ Security policy → promiscuous mode, MAC address changes, forged transmits.
- 📊 Traffic shaping → inbound/outbound bandwidth limits.
- ⚡ NIC teaming & failover order → redundancy and load balancing.
Two types exist on ESXi:
- VM port groups → for VM traffic.
- VMkernel port groups → for host services like management, vMotion, and storage.
A single vSwitch can host multiple port groups, enabling multiple isolated network segments on one switch.
🌐 VLANs in VMware Networking: Three Tagging Modes
VMware supports three VLAN tagging approaches on port groups and vSwitches:
EST (External Switch Tagging) → VLAN ID = 0.
- 🖧 The physical switch handles all VLAN tagging.
- The VM receives untagged frames.
- Simplest configuration; ESXi is VLAN‑agnostic.
VST (Virtual Switch Tagging) → VLAN ID = 1–4094.
- 🔀 The vSwitch tags frames as they leave and strips tags as they arrive.
- The VM receives untagged frames; VLAN tagging is transparent to the guest OS.
- Standard in enterprise ESXi deployments.
VGT (Virtual Guest Tagging) → VLAN ID = 4095.
- 📦 The vSwitch passes 802.1Q frames directly to the VM.
- The guest OS handles VLAN tagging.
- Required for VMs running routers, firewalls, or appliances that process multiple VLANs.
Networking in VMware: Traffic Types and Separation Best Practices
🔑 The Four Primary ESXi Traffic Types
Production VMware environments separate network traffic into at least four categories, each mapped to its own port group, VMkernel adapter, and ideally dedicated vmnics for performance and security:
🛠️ Management Traffic
- Handles vSphere Client access, SSH, and API calls to the ESXi host.
- Uses vmk0 by default.
- Best practice: always isolate on a dedicated VLAN — exposing management traffic on VM production networks creates a major security risk.
💻 VM Production Traffic
- Guest OS and application traffic for workloads running inside VMs.
- Often segmented into multiple VLANs by application tier (web, app, database) using separate port groups.
- Ensures workload isolation and predictable performance.
🚚 vMotion Traffic
- Transfers live VM migration data between hosts.
- Generates large, sustained bursts during migration.
- Isolate on a dedicated VMkernel adapter and VLAN.
- Requires minimum 1 GbE; 10 GbE strongly recommended for production clusters.
📦 Storage Traffic
- Covers iSCSI, NFS, and FCoE datastore access.
- Generates sustained sequential I/O that competes with VM traffic if not isolated.
- Assign dedicated VMkernel adapters with jumbo frames (MTU 9000) for NFS and iSCSI.
- Configure multipathing for redundancy and throughput.
📊 NIC Teaming and Load Balancing Policies
| Policy | Method | Best For |
|---|---|---|
| Route based on originating port ID | Default — VM always exits same vmnic | Simple environments; no physical switch config required |
| Route based on IP hash | Per-flow load balancing based on src+dst IP | Active-active link aggregation (requires physical switch LACP/802.3ad) |
| Route based on source MAC hash | Per-VM load balancing | Multi-vmnic setups without physical switch config |
| Use explicit failover order | Active/standby NIC failover | Strict redundancy with designated standby |
| Route based on physical NIC load | Dynamic load balancing based on utilization | vDS only; Enterprise Plus; highest utilization efficiency |
VMware Virtual Machine Network Settings: Configuring VM Network Adapters
📊 Virtual NIC Adapter Types: Choosing the Right Driver
| Adapter | Driver | Performance | Compatibility | Use Case |
|---|---|---|---|---|
| VMXNET3 | Paravirtualized (VMware-native) | Highest | Requires VMware Tools | Production VMs (Windows 2008+, Linux kernel 2.6.32+) |
| E1000E | Intel 82574L emulated | Good | Broad OS support | Newer guest OS without VMware Tools |
| E1000 | Intel 82545EM emulated | Moderate | Maximum OS compatibility | Legacy OS, DOS, older Windows |
| VMXNET2 | Paravirtualized (older) | Good | Older VMs | Legacy — upgrade to VMXNET3 |
| SR-IOV Passthrough | Direct PCIe VF assignment | Near-native | vDS only; specific driver | Network-intensive workloads, latency-sensitive apps |
⚙️ VMware Virtual Machine Network Settings: Configuration in vSphere Client
To configure or change VM network settings in the vSphere Client:
- Power state → Power off the VM, or use hot‑add for supported adapter changes (Linux guests with VMXNET3 support hot‑add; Windows guests require a reboot after adapter type changes).
- 🖱️ Edit settings → Right‑click the VM → Edit Settings → Virtual Hardware tab.
- 🔌 Network Adapter configuration →
- Adapter type: Select VMXNET3 for production VMs.
- Network: Choose the target port group from the dropdown — this connects the adapter to the chosen vSwitch/port group/VLAN.
- Status: Check “Connect at power on” for standard operation.
- MAC address: Set to Automatic (VMware‑assigned) or specify a static MAC if required for licensing or ACLs.
- 4. 💾 Save changes → Click OK and power on the VM.
Key VMX parameters (editable directly in the VMX file when the VM is powered off):
ethernet0.virtualDev = "vmxnet3"
ethernet0.connectionType = "bridged" (for Workstation)
ethernet0.networkName = "VM Network" (for ESXi — matches port group name)
ethernet0.addressType = "generated"
ethernet0.startConnected = "TRUE"✅ Verifying VM Network Connectivity After Configuration
After changing VM network settings, verify connectivity inside the guest OS:
Windows
- Run
ipconfig /all→ confirm adapter shows correct IP. - Run
ping [gateway IP]→ verify Layer 3 reachability.
🐧 Linux
- Run
ip addr show→ confirm adapter and IP. - Run
ip route→ verify default route. - Run
ping -c 4 [gateway IP]→ verify Layer 3 reachability.
⚠️ Common post‑configuration failures:
- Wrong port group selected → check vSphere Networking tab for VM connection status.
- VLAN mismatch between port group and physical switch trunk.
- Static MAC address conflict with another VM on the same segment.
- Missing VMware Tools → VMXNET3 driver fails to load in the guest.
ESXi Network Configuration: vSwitch Creation and Management
🖥️ Creating a Standard vSwitch via ESXi Host Client
- 1. 🔑 Log in → ESXi Host Client → Networking → Virtual Switches → Add Standard Virtual Switch.
- 2. 📝 Configure basics → Set vSwitch name (e.g.,
vSwitch1), MTU (1500 for standard; 9000 for jumbo frames on storage networks), and assign uplinks (vmnics). - 3. 🏷️ Add a port group → Networking → Port Groups → Add Port Group.
- Name → e.g.,
Production - VLAN ID →
0for untagged,1–4094for tagged,4095for VGT passthrough - Select the target vSwitch
- 4. 🔌 Connect VMs → Edit Settings → Network Adapter → select the new port group name.
💻 Creating a vSwitch via ESXi SSH (ESXCLI)
Use ESXCLI for CLI‑based vSwitch management:
- Create a 24‑port standard vSwitch:
esxcli network vswitch standard add -P 24 -v vSwitch1- Add a vmnic uplink:
esxcli network vswitch standard uplink add -v vSwitch1 -u vmnic1- Add a port group with VLAN 100::
esxcli network vswitch standard portgroup add -v vSwitch1 -p "Production"
esxcli network vswitch standard portgroup set -p "Production" --vlan-id 100VMware Networking and Data Recovery: What Happens When Network Misconfiguration Meets Storage
⚠️ How ESXi Network Misconfiguration Damages VMFS Datastores
In VMware environments, storage traffic flows through the same virtual network stack as management and VM traffic. Misconfigured iSCSI or NFS VMkernel adapters — wrong MTU, missing multipath, absent storage VLAN, or uplink failover leaving storage traffic without an active path — can take VMFS datastores offline. ESXi responds with “All Paths Down” (APD) or “Permanent Device Loss” (PDL) events. VMs on those datastores halt with disk I/O errors, and VMDKs may be left mid‑write when the storage path drops. These network‑caused storage outages are among the most common sources of VMFS datastore corruption and VMDK damage in production clusters.
🛡️ Storage Network Best Practices That Prevent VMFS Damage
- Dedicated VMkernel adapters → Assign separate adapters for iSCSI and NFS traffic, isolated on VLANs distinct from management and VM traffic.
- Enable jumbo frames (MTU 9000) → Configure end‑to‑end support (VMkernel, physical switch, storage array). MTU mismatches silently fragment packets, degrading iSCSI performance and risking in‑flight write corruption.
- Multipathing → Configure at least two storage paths to eliminate single‑NIC failures as VMFS outage triggers.
- APD timeout tuning → Set appropriately for your storage environment. Too short → false PDL declarations; too long → delayed VM restart after genuine failures.
🛠️ Recovering VMFS Datastores After Network‑Caused Storage Failures with DiskInternals VMFS Recovery™
When a network misconfiguration causes a VMFS datastore to go offline and metadata is corrupted mid‑I/O, standard ESXi tools cannot repair the datastore — esxcfg-advcfg and esxcli storage only operate on mounted volumes.
DiskInternals VMFS Recovery™ is purpose‑built to recover data from corrupted or inaccessible VMFS datastores, deleted or damaged VMDK files, and failed VMware environments across ESXi, vSphere, and Workstation.
Key capabilities for network‑caused storage failures:
- 📂 Mount VMDK files without a running ESXi host (critical when the ESXi network stack itself is broken).
- 🔄 Reconstruct VMFS volumes with damaged or partially overwritten metadata.
- 📝 Recover VMX configuration files and VMDK flat files from corrupted datastores.
- 🌐 Connect directly to ESXi hosts via IP and credentials for remote datastore scanning once connectivity is restored.
Recovery workflow:
- 1. Restore network connectivity to the storage layer.
- 2. Launch DiskInternals VMFS Recovery™ and connect to the affected VMFS volume.
- 3. Run a full scan to rebuild metadata and locate VMX/VMDK files. Repair the VMware virtual machine.
- 4. Preview file integrity in read‑only mode.
- 5. Extract recovered files to a safe destination.
Ready to get your data back?
To start recovering your data, documents, databases, images, videos, and other files, press the FREE DOWNLOAD button below to get the latest version of DiskInternals VMFS Recovery® and begin the step-by-step recovery process. You can preview all recovered files absolutely for FREE. To check the current prices, please press the Get Prices button. If you need any assistance, please feel free to contact Technical Support. The team is here to help recover deleted VMware virtual machine!
Product.DownloadAndOrderButtons