A virtual machine loses network connectivity after performing a vMotion.
This can be a manual vMotion migration, or a DRS migration.
When you use tcpdump or Wireshark to analyze packet traffic, you observe that the host does not send a RARP request after moving the virtual machine via vMotion to the destination host.
To perform packet captures with pktcap-uw:
Identify the VM Switchport and Uplink:
Locate the VM's active Switchport ID and the physical vmnic it utilizes on the destination host:
net-stats -l | grep <VM_Name>
Capture VM ARPs (VnicTx/VnicRx):pktcap-uw --switchport <Switchport_ID> --capture VnicTx,VnicRx --mac <VM_MAC_Address> --ng -o /tmp/vm_vnic_arp.pcapng
Capture Uplink RARPs (UplinkSndKernel):
After a vMotion operation, the receiving host sends a RARP packet on behalf of the VM to update the rest of the network of the VM's new location.
Identify which uplink is used by the VM:
Type esxtop and press n for network.
Capture directly on the uplink to verify this egress traffic:pktcap-uw --uplink <vmnic_name> --capture UplinkSndKernel --mac <VM_MAC_Address> --ng -o /tmp/uplink_vmnic_rarp.pcapng
After setting the Load Balancing policy in the vSwitch or the Teaming and failover policy in the Distributed Port Group properties to Notify Switches, the host sends the RARP request after performing a vMotion.
VMware ESXi
VMware vCenter Server
Upstream switch not notified of VM relocation.
Enable switch notification by setting the Notify Switches option to Yes in the Load Balancing or Teaming and Failover policy under the Distributed Port Group properties.
If setting the Notify Switches option to Yes does not resolve the issue:
Workaround:
For more information on troubleshooting steps, see (KB 324542) Troubleshooting virtual machine network connection issues.
For further information on packet captures on ESXi, see (KB 341568) Packet capture on ESXi using the pktcap-uw tool.