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:
- To list the ARP table, run the command:
arp -a
-
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.
-
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
-
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
-
Note: In ESXi tcpdump is changed to tcpdump-uw