ESXi host shows Not Responding in vCenter due to missing management network route
search cancel

ESXi host shows Not Responding in vCenter due to missing management network route

book

Article ID: 426152

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • An ESXi host appears in a Not Responding state within the vCenter Server inventory.
  • Explicit vmkping from Host to vCenter is successful: vmkping -I vmk0 -d -s 1472 <vCenter_IP>
  • Standard ping from host to vCenter fails: ping <vCenter_IP> returns host is down.
  • esxcli network ip neighbor list -v 4 shows the vCenter IP learned on a non-management adapter (e.g. vmk1) instead of vmk0.
  • Packet captures show vCenter traffic arriving on management vmk0 while replies leave through a different vmk.
  • When checking  esxcli network ip route ipv4 list you observe routing that have the VC IP matching to a VMK other than the expected. 
  • Example problematic config, vCenter Server IP of 10.2.2.10.

    [root@esxi01:~] esxcli network ip route ipv4 list
    Network    Netmask          Gateway   Interface  Source
    ---------  ---------------  --------  ---------  ------
    default    0.0.0.0          10.1.1.1  vmk0       MANUAL
    10.1.1.0   255.255.255.0    0.0.0.0   vmk0       MANUAL
    10.2.0.0   255.255.0.0      0.0.0.0   vmk1       MANUAL   <-- 10.2.0.0 - 10.2.255.255 includes vCenter 10.2.2.10
    10.3.3.0   255.255.255.0    0.0.0.0   vmk2       MANUAL
    10.4.4.0   255.255.255.0    0.0.0.0   vmk3       MANUAL

Environment

  • VMware ESXi
  • VMware vCenter Server

Cause

The ESXi host is unable to determine the correct egress path for traffic destined for the vCenter Server IP address. This typically occurs in environments with multiple VMkernel adapters on different subnets where a specific static route is required to bypass an incorrect default gateway selection or a lack of routing information for the management network.

One such example is a non-management VMkernel adapter on the default TCP/IP stack has an IP/netmask whose subnet contains the vCenter Server IP. ESXi installs a connected route for that subnet. A connected route is more specific than the default route through vmk0, so return traffic to vCenter goes out that adapter (longest-prefix match).

If vCenter is not reachable at L2 on that adapter's VLAN, or if something upstream drops asymmetric flows (stateful firewall, uRPF), management traffic is lost and the host goes Not Responding.

Resolution

To resolve this issue, you must add a static IPv4 route to the ESXi host to explicitly define the gateway for vCenter Server traffic.

  • Log in to the ESXi host via SSH or the ESXi Shell.
  • Run the following command to add a static route for the vCenter Server IP : esxcli network ip route ipv4 add --gateway <Management VMK GW IP> --network ##.##.##.##/24
    • Note : You can add vCenter IP explicitly instead of a network. Ex : esxcli network ip route ipv4 add --gateway <Management VMK GW IP> --network <vCenter_IP>/32
  • Verify the route has been added by running: esxcli network ip route ipv4 list OR esxcfg-route -l
  • Using the example from the issue, the routes should now look similiar to the below:

    [root@esxi01:~] esxcli network ip route ipv4 list
    Network        Netmask          Gateway        Interface  Source
    -------------  ---------------  -------------  ---------  ------
    default        0.0.0.0          10.10.129.129  vmk0       MANUAL
    10.10.48.0     255.255.240.0    0.0.0.0        vmk1       MANUAL
    10.10.49.10    255.255.255.255  10.10.129.129  vmk0       MANUAL   <-- /32 wins (longest prefix), vCenter replies leave via vmk0
    10.10.129.128  255.255.255.128  0.0.0.0        vmk0       MANUAL
    192.168.60.0   255.255.255.0    0.0.0.0        vmk2       MANUAL
    192.168.62.0   255.255.255.0    0.0.0.0        vmk4       MANUAL
  • Attempt a standard ping to the vCenter Server to confirm connectivity: ping <vCenter_IP>

Additional Information

Configuring staticroutes for vmkernel ports on an ESXi host