Loops detected in the network for mac 0050.56##.#### among ports.VMware vSphere ESXi 8.x
VMware vCenter 8.x
The ESXi vSwitch is configured with the Route based on IP hash load balancing policy. However, the connected physical switch ports are not configured as EtherChannel.
Route based on IP hash works by taking the source and destination IP addresses and performing a mathematical calculation on each packet to determine which uplink in the team to use. A single virtual machine communicating with multiple IP addresses can balance its load across all of the network adapters in the team. Without EtherChannel configured on the physical switch, the switch receives frames from the same VM MAC address on multiple independent physical ports. The switch interprets this as MAC movement, MAC flapping, or a network loop condition, generating loop detection alerts.
To resolve this issue, the configuration on the physical switch must match the load balancing policy on the vSwitch. Follow one of the two options below:
Option 1: Configure EtherChannel on the physical switch
Coordinate with the network administration team to configure the physical switch ports as EtherChannel.
Option 2: Change the vswitch load balancing policy
Change the load balancing policy to Route based on originating virtual port.
For a Standard vSwitch (vSS):
Configure > Networking.Edit Settings.Teaming and Failover, confirm the Override checkbox for Load balancing is not selected.Edit next to the virtual Standard Switch that is being modified.Teaming and Failover, change the Load balancing configuration to Route based on originating virtual port.For a vSphere Distributed Switch (vDS):
Distributed Port Group > Manage Distributed Port Groups. Teaming and Failover and click Next.Next.Load balancing policy and select Route based on originating virtual port and click Next.Finish to end the wizard and apply the change to all selected portgroups.