Close Menu
DPC Virtual Tips
    Read More

    Configure vCenter File-Based Backups to NFS: Practical Lab Guide

    September 11, 2026

    Creating Your First Ansible Playbook: A Practical Lab Guide

    September 10, 2026

    Linux Commands to Investigate High Disk Partition Usage

    September 9, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    Monday, September 14
    DPC Virtual Tips
    • Home
    • Linux & Automation
    • HPC & Slurm
    • VMware & Virtualization
    • About Us
    • Contact
    DPC Virtual Tips
    Home » VMs Are Unable to Connect in the NSX Environment
    VMware & Virtualization

    VMs Are Unable to Connect in the NSX Environment

    By Danilo ChiacchioJuly 25, 20269 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    VMs Are Unable to Connect in the NSX Environment
    VMs Are Unable to Connect in the NSX Environment
    Share
    Facebook Twitter LinkedIn Pinterest Email

    This article shows a practical workflow for NSX troubleshooting communication failures between two virtual machines connected to the same NSX overlay segment but running on different ESXi Host Transport Nodes.

    In this scenario, VM A and VM B are connected to the NSX Web Segment. Because the VMs reside on different ESXi hosts, their traffic must traverse the NSX overlay between the source and destination Transport Endpoint (TEP) interfaces.

    The troubleshooting workflow starts at the guest operating system and gradually moves through the NSX segment, Transport Nodes, TEP connectivity, Traceflow, and packet capture.

    NSX VM-to-VM connectivity troubleshooting workflow across different ESXi hosts
    NSX VM-to-VM connectivity troubleshooting workflow across different ESXi hosts

    Step 1: Are the virtual machines configured correctly?

    To begin with, a good starting point is to check the Guest OS network configuration. Access the Guest OS VM and check the network configuration (check IP, netmask, default gateway, and configured DNS servers). For example:

    Guest operating system network configuration used during NSX connectivity troubleshooting
    Guest operating system network configuration used during NSX connectivity troubleshooting
    IP address and route configurations
    IP address and route configurations
    Static network configurations
    Static network configurations
    DNS configurations
    DNS configurations

    Additionally, check the assigned port group to confirm if the VM is using the right NSX segment:

    Virtual machine connected to the NSX Prod Web Segment
    Virtual machine connected to the NSX Prod Web Segment

    Tip: Check those details in both VMs (the source and the destination VM).

    For a direct VM-to-VM connectivity test, use the destination IP address first. This avoids confusing a DNS-resolution problem with an NSX dataplane problem.

    Step 2: Is the segment configured correctly?

    Each NSX segment has some profiles. Are there any custom segment profiles applied to your profile?
    This is a thought-provoking question and needs to be checked. Some profiles such as “Spoof Guard” or “Segment Security” can block the VM communication for some reason. If you have a custom profile, it is a good idea to review each one.
    Additionally, access the NSX Manager Appliance and check if the NSX segment is “up” (we can administratively disable an NSX segment). So, here, check if the NSX segment is “up”:

    NSX segment administrative status during connectivity troubleshooting
    NSX segment administrative status during connectivity troubleshooting

    Review the profiles applied to the affected segment and its logical ports, especially custom SpoofGuard, Segment Security, IP Discovery, and MAC Discovery profiles.

    A restrictive profile can legitimately drop traffic when the observed IP or MAC information does not match the expected bindings.

    Do not change a security profile simply to see whether connectivity returns. First use Traceflow to determine whether the packet is actually being dropped by one of these mechanisms. If a profile change is required for testing, perform it only in a controlled environment and document the original configuration.

    Step 3: Can the source and destination TEPs communicate?

    Each ESXi Host Transport Node uses physical uplinks mapped through the NSX Uplink Profile. Depending on the network design, these physical NICs may be dedicated to NSX traffic or shared with other vSphere services.

    It’s interesting to check if each interface is “up”. Check it on both ESXi hosts (the source and the destination ESXi host).

    We can use the command “net-dvs” to show what uplink interfaces have been used by NSX and use the esxcli command to check the status of each vmnic interface, as we can see in the following example:

    net-dvs | grep -i nsxUplink
    
    esxcli network nic list
    ESXi physical uplinks used by the NSX transport node
    ESXi physical uplinks used by the NSX transport node

    The “esxtop” command can be used to check what vmnic interface is the active interface for NSX traffic. After executing the esxtop, press “n” to access the network view. Look in the column “USED-BY” for the interfaces “vmk10” and “vdr-vdrPort” (both interfaces are used by the NSX). In this case, for instance, both interfaces are using the vmnic4 physical interface:

    ESXi esxtop network view showing NSX TEP traffic mapped to a physical uplink
    ESXi esxtop network view showing NSX TEP traffic mapped to a physical uplink

    If vmnics for NSX is “up”, check if the vmkernel interface (vmk10) has an IP address in your TEP network. Try to ping each ESXi host using this vmkernel interface and using the configured MTU size:

    esxcfg-vmknic -l
    ESXi VMkernel interface configured as an NSX Transport Endpoint
    ESXi VMkernel interface configured as an NSX Transport Endpoint

    Validate TEP-to-TEP Connectivity

    First identify the VMkernel interface used as the NSX TEP:

    esxcfg-vmknic -l

    Then test basic connectivity from the source TEP to the destination TEP:

    vmkping -S vxlan -I vmk10 -d -s 1472 <DESTINATION_TEP_IP>

    Next, validate that the underlay supports the minimum MTU required for NSX overlay traffic:

    vmkping -S vxlan -I vmk10 -d -s 1572 <DESTINATION_TEP_IP>
    vmkping -S vxlan -s 1572 -d <DESTINATION_TEP_IP>

    Notes:

    • The -s value represents the ICMP payload used by vmkping; it is not the configured MTU itself.
    • A 1572-byte test is commonly used by Broadcom to verify that the underlay can carry the approximately 1600-byte packet required for NSX Geneve overlay traffic without fragmentation.
    • If the 1472-byte test succeeds but the 1572-byte test fails, investigate the MTU configuration across the physical switches, routed interfaces, vDS, and TEP path.
    NSX TEP-to-TEP vmkping test validating overlay underlay connectivity
    NSX TEP-to-TEP vmkping test validating overlay underlay connectivity

    Tip: Perform those tests in both ESXi hosts (the source and the destination ESXi hosts).

    Check the NSX Tunnel State

    On both ESXi Transport Nodes, run:

    nsxdp-cli bfd sessions list

    Review the BFD sessions associated with the remote TEPs and confirm that the expected tunnels are in an UP state.

    A successful TEP-to-TEP vmkping confirms IP connectivity through the underlay, but it does not by itself prove that the NSX overlay tunnel is operational. BFD sessions can still be down even when TEP ping succeeds.

    For a deeper investigation of TEP, MTU, and BFD tunnel problems, see “Troubleshooting NSX Overlay TEP Connectivity from ESXi and Edge Nodes“.

    Step 4: Use Traceflow and Packet Capture to Locate the Drop

    Furthermore, inside the NSX Manager Appliance UI, there are powerful tools to perform some tests.

    The first one is the Live Traffic Analysis. This tool monitors live traffic at a source or between a source and destination along with packet capture.

    The second is the Traceflow. This tool injects packets into the network and monitors their flow across the network, allowing you to identify issues or disruptions.

    Start with Traceflow before packet capture whenever possible. Traceflow can identify the logical component or firewall rule responsible for a drop and may eliminate the need for deeper packet captures:

    NSX Live Traffic Analysis tool for troubleshooting virtual machine connectivity
    NSX Live Traffic Analysis tool for troubleshooting virtual machine connectivity
    NSX Traceflow configured between source and destination virtual machines
    NSX Traceflow configured between source and destination virtual machines
    NSX Traceflow result showing the packet path between virtual machines
    NSX Traceflow result showing the packet path between virtual machines

    Another option is to perform a packet capture directly from the NSX datapath on the ESXi host using nsxcli.Here, we can capture the sample of the traffic in different places through the infrastructure between the source and the destination VM.

    To capture the traffic leaving the vNIC of the source VM (sa-web-01), for instance, the following command can be used on the source ESXi host (the ESXi host that runs the source VM).

    1- Get the client VM name (in this case, for instance, the VM name is sa-web-01):

    nsxcli -c get ports | egrep -i "Client|sa-web-01"
    NSX CLI showing the logical port associated with the source virtual machine
    NSX CLI showing the logical port associated with the source virtual machine

    2- This example captures ICMP traffic entering the NSX datapath through the source VM logical interface. Replace sa-web-01.eth0 with the client interface identified in your environment:

    nsxcli
    
    start capture interface sa-web-01.eth0 direction input expression ipproto 0x01

    Where:
    — sa-web-01.eth0 = Client interface name. Change this name to your client interface name.

    NSX packet capture on the source virtual machine logical interface
    NSX packet capture on the source virtual machine logical interface

    Do the same thing for the destination VM on the destination ESXi host.

    If Traceflow shows that the traffic is being rejected by a Distributed Firewall rule, see “Troubleshooting NSX Distributed Firewall with Traceflow: Practical Lab Scenario“ for a complete example of identifying the exact firewall Rule ID and correcting the policy.

    Optional: Capture the VM Traffic with pktcap-uw

    First identify the VM switchport:

    nsxdp-cli vswitch instance list

    Then capture traffic at the VM virtual switchport:

    pktcap-uw \
      --switchport <switchport-id> \
      --capture VnicTx,VnicRx \
      -o - | tcpdump-uw -enr - -nn

    Perform the capture on both the source and destination ESXi hosts when necessary. Seeing a packet leave the source VM but never arrive at the destination host significantly narrows the failure domain.

    If the problem appears to be a packet drop inside the ESXi datapath rather than an NSX policy or TEP issue, see “How to Troubleshoot Packet Drops on an ESXi Host“.

    What This Troubleshooting Workflow Helps You Isolate

    Troubleshooting NSX connectivity is easier when each layer is validated separately.

    Start by confirming the Guest OS configuration and segment attachment. Then verify the NSX segment and its security profiles, followed by the physical uplinks, TEP IP connectivity, MTU, and BFD tunnel state.

    If the underlay and overlay are healthy, use Traceflow to determine whether the packet is being dropped by the Distributed Firewall or another NSX component. Packet captures should then be used when the failure needs to be traced deeper through the ESXi datapath.

    Following this sequence helps avoid changing firewall rules, segment profiles, or transport-node configuration before the actual failure domain has been identified.

    External References

    • Troubleshooting NSX TEP/BFD Tunnels Between Transport Nodes Broadcom troubleshooting reference for TEP connectivity, BFD tunnel state, the NSX overlay network stack, and vmkping testing between Transport Endpoints.
    • Validate NSX TEP Connectivity and MTU with vmkping Official Broadcom example using the TEP VMkernel interface, -S vxlan, Don’t Fragment testing, and a 1572-byte payload to validate the NSX overlay MTU path.
    • BFD Tunnels Are Down Between ESXi Hosts in an NSX Environment Broadcom example demonstrating that TEP-to-TEP IP connectivity can succeed while the NSX BFD tunnel remains down, highlighting the importance of checking nsxdp-cli bfd sessions list.
    • Troubleshooting VMware NSX Using Packet Captures Broadcom guide for using Traceflow before deeper packet captures and for capturing East-West and North-South traffic at VM switchports and ESXi uplinks.
    • Traceflow Drop Reason: SpoofGuard Broadcom example showing how Traceflow can identify traffic rejected by an NSX SpoofGuard profile when source MAC or address bindings do not match the expected VM configuration.
    • Troubleshooting Virtual Machine Connectivity with Packet Capture Broadcom workflow for tracing VM traffic at the ESXi virtual switchport with pktcap-uw and validating Layer 2 ARP behavior before investigating higher-layer traffic.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleHow to Determine Whether Packet Loss Is Local or Network Related on Linux
    Next Article Essential Slurm Administration Commands Every HPC Administrator Should Know
    Danilo Chiacchio
    • LinkedIn

    Infrastructure Engineer with hands-on experience in virtualization, Linux, Windows Server, and enterprise infrastructure troubleshooting. I work with real-world infrastructure environments and technical labs, focusing on diagnosing problems, understanding root causes, and documenting practical solutions. DPC Virtual Tips was created to share hands-on troubleshooting guides, lab experiences, technical procedures, and lessons learned while working with technologies such as VMware, Linux, HPC/Slurm, networking, storage, and infrastructure automation with Python.

    Related Posts

    Configure vCenter File-Based Backups to NFS: Practical Lab Guide

    September 11, 2026

    Restoring vCenter Server from a File-Based Backup: Practical Lab Walkthrough

    September 7, 2026

    Troubleshooting the vSAN “Stats Primary Election” Alert on an ESA Cluster

    September 2, 2026

    Comments are closed.

    Search
    Categories
    • HPC & Slurm (11)
    • Linux & Automation (12)
    • VMware & Virtualization (16)
    Read More
    VMware & Virtualization

    Configure vCenter File-Based Backups to NFS: Practical Lab Guide

    By Danilo ChiacchioSeptember 11, 202610 Mins Read
    Linux & Automation

    Creating Your First Ansible Playbook: A Practical Lab Guide

    By Danilo ChiacchioSeptember 10, 202610 Mins Read
    Linux & Automation

    Linux Commands to Investigate High Disk Partition Usage

    By Danilo ChiacchioSeptember 9, 20267 Mins Read
    HPC & Slurm

    How to Investigate Jobs Stuck in COMPLETING State on Slurm

    By Danilo ChiacchioSeptember 8, 202612 Mins Read
    VMware & Virtualization

    Restoring vCenter Server from a File-Based Backup: Practical Lab Walkthrough

    By Danilo ChiacchioSeptember 7, 20269 Mins Read
    Latest Posts

    Configure vCenter File-Based Backups to NFS: Practical Lab Guide

    September 11, 2026

    Creating Your First Ansible Playbook: A Practical Lab Guide

    September 10, 2026

    Linux Commands to Investigate High Disk Partition Usage

    September 9, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC & Slurm
    • Linux & Automation
    • VMware & Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to improve your browsing experience, analyze website traffic, and display relevant advertising. You can accept all cookies or manage your preferences at any time.