olaq
Contributor
Contributor

ESXi 2NICs setting

Hi Support Team

Three ESXi hosts, each with two network cards connected to two Cisco switches.

The ESXi vswitch0 configured with:
load balancing: route based on IP Hash using
notity switch : yes
fallback: yes
active adapters: 
active/standby

However, two of the ESXi hosts are experiencing MAC flapping on the Cisco switches(standby NICs), where the MAC address of the active NIC is detected. The ESXi host with vCenter installed does not experience MAC flapping.

question2:
When the active NIC breaks down and recovers, the ESXi's network is disconnected for 30 seconds. Is this issue due to the configuration problem on the ESXi or the Cisco switches?"

How can this situation be explained and resolved?"

Reply
0 Kudos
BivasM
Enthusiast
Enthusiast

it is the expected behavior. if your adapters are on active/standby mode. cisco switches will only detect MAC of active adapters.

Reply
0 Kudos
olaq
Contributor
Contributor

Hi

Is MAC flapping on Cisco switches considered expected behavior?
How can it be avoided?
Should it be modified to active/active with ip hash  or active/standby with port id ?

Reply
0 Kudos
BivasM
Enthusiast
Enthusiast

depends on what you want basically and what type of load balancing you are trying to design. if you want to use both nic then set to active/active. then cisco switches will discover both MAC.

DeviVmware
VMware Employee
VMware Employee

@olaq Are you using Etherchannel on Cisco Switches ? IP Hash load balancing policy should be used only when Physical switches are configured in Etherchannel. 

Deafult load balancing policy is Route based on Originating Virtual Port ID.

olaq
Contributor
Contributor

I'm really puzzled because out of three ESXi hosts with the same configuration, one host doesn't experience MAC flapping regardless of being set to active/active or active/standby

Reply
0 Kudos
Kinnison
Expert
Expert

Hi,


@DeviVmwarehe's right, without "some form" of LAG configured on the physical switches using "IP hash" as a load balancing method, in practical terms, is of no use, certainly not with an active/standby policy. and @Bivas he's right as well given the case as presented.


Regards,
Ferdinando

DeviVmware
VMware Employee
VMware Employee

@olaq i would recommend you to modify the load balancing policy. also, check your switch security policies. 

olaq
Contributor
Contributor

Hi @DeviVmware 

I will follow your recommend
Thank you

Reply
0 Kudos