Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

Troubleshooting network connection issues using Address Resolution Protocol (ARP)

Symptoms

  • Virtual machine cannot connect to the network
  • Virtual machine tasks fail because of network disconnection
  • ARP table does not show proper Media Access Control (MAC) addresses

Purpose

This article troubleshoots network connection issues using ARP.
 
Note: This article applies only to ESX. It does not apply to ESXi.
 
 

Resolution

The ARP table is a dynamic system table that is built when virtual machines communicate over TCP/IP with other nodes. The ARP table automatically maps the IP address of a virtual machine to the MAC address (the network adapter's unique embedded address). After a period of time, if virtual machine A no longer communicates with virtual machine B, the system ages out the entry in the ARP table.
 
Virtual machines use ARP table entries to address packets to send to other nodes. 
 
The ARP cache is a list of recently resolved IP addresses to MAC address mappings. If an entry in the ARP cache is incorrect, the IP datagram may be sent to the wrong computer. You must clear the ARP cache.
 
To clear the ARP cache: 
  1. To list the ARP table, run the command:

    arp -a

  2. To populate the ARP table on a certain interface, run this command from the service console to display all mappings currently in the ARP cache:

    arping -I vswifX <IP address>, where <IP address> is the IP address of the virtual machine

  3. To clear all entries, run the command:

    arp -d  <IP address>,  where <IP address> is an Internet address stored in the ARP cache


    Run this command for each entry in the ARP cache until all entries have been deleted. When the ARP cache is empty, you see the message:

    No ARP Entries Found

  4. To populate the ARP table, ping a broadcast IP address to get a reply back from all hosts listening on the same subnet.

    For example:


    ping 10.10.10.255
  5. Use the tcpdump command to monitor TCP/IP traffic. For more information, see Verifying gateway IP connection using the tcpdump command (1008017).

Additional Information

For related troubleshooting information, see Troubleshooting virtual machine TCP/IP connection issues (1007842).
 
Note: This article applies only to ESX. It does not apply to ESXi. Currently the only method of clearing the ARP cache on an ESXi host is to reboot.
 
In ESXi 4.1 or later, you can list the ARP table using this command:

esxcli network neighbor list

Tags

arp-table cannot-connect-vm cannot-manage-vm connect-vm manage-vm windows-linux

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback


Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
Actions