VMs intermittently lose network connectivity while connected to a VLAN-backed segment on VMware NSX
search cancel

VMs intermittently lose network connectivity while connected to a VLAN-backed segment on VMware NSX

book

Article ID: 435760

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

When attempting to troubleshoot intermittent network connectivity issues for Virtual Machines (VMs) residing on an NSX VLAN-backed segment, you observe the following symptoms:

  • The Guest OS experiences intermittent or complete loss of network connectivity (e.g., failing pings, dropped TCP connections).

  • Packet captures performed at the ESXi host/virtual switch interface level show that both ICMP echo requests and replies are successfully reaching the host network layers.

  • Despite packets arriving at the host interface, the Guest OS does not receive or process the packets.

Environment

 VMware NSX

Cause

This issue occurs due to a mismatch between the physical network fabric's MAC learning/uplink mapping and the ESXi host's logical port affinity, or incorrect handling of Geneve/VLAN offloads by the physical NIC driver following a VM migration.

Specifically:

  1. The VM's logical port is pinned to a specific physical uplink (e.g., vmnic0).

  2. Due to an upstream physical switch fabric misconfiguration or delayed MAC address table updates, return traffic is forwarded to an alternate uplink on the same host (e.g., vmnic1).

  3. Because the incoming traffic arrives on an unexpected uplink that does not match the VM's logical port affinity, the ESXi network stack drops the packets to prevent MAC spoofing or network loops.

Resolution

1. Verify Physical Switch Fabric Configuration

The primary resolution requires addressing the upstream packet forwarding behavior.

  • Check the MAC address tables on the connected physical switches to ensure they are updating correctly and promptly following VM migrations.

  • Validate the Link Aggregation (LACP) or NIC Teaming configuration on the physical switch ports connected to the ESXi host to ensure proper load balancing and failover policies.

2. Inspect NIC Driver and Firmware

  • Ensure that the physical network interface cards (NICs) on the ESXi hosts are running the latest vendor-approved firmware and driver versions.

  • Verify if the issue is tied to VLAN/Geneve offloading bugs within the specific NIC driver version, which can sometimes misroute packets internally after a vMotion event.

Note: If the host network configuration is verified as correct and ESXi continues to drop packets due to upstream traffic arriving on the wrong uplink, please contact your physical network switch or hardware vendor to investigate the fabric's MAC learning and packet distribution behavior.