In EVPN scenario, a MAC address can move from one Ethernet segment (port) to another segment (port). LEAFs/SPINEs/Provider Edge (PE) devices discover the host MAC address on its local interfaces or from a remote LEAF/SPINE/PE devices.
When a PE device learns a mac-address locally and that MAC is already advertised by remote EVPN device, then it must decide which of the MAC advertisement messages to use. This is decided using the parameter detection-threshold and detection-window. Then auto-recovery will kick in to consider the best mac-advertisement.
The default settings of MAC MOBILITY parameters are quite aggressive. However, in some cases we need to have optimum settings to allow this MAC move in valid scenarios like VRRP convergence, STP, VMotion, Server Migration etc.
Use the configurations below to overcome any MAC mobility suppression, aka. duplicate MAC suppression. This has been tested with VRRP protocol convergence during which the VRRP MAC moves between the peers until the Master election completes. During VMotion, we can see up to 6 times the MAC being moved from one hypervisor to another. The following setting should help in overcoming that:
set protocols evpn duplicate-mac-detection detection-threshold 20
set protocols evpn duplicate-mac-detection detection-window 5
set protocols evpn duplicate-mac-detection auto-recovery-time 5
Note: If there is a loop in the network or the MAC moves for more than 20 times within 5 seconds, then the MAC will be suppressed. The detection threshold cannot be increased more than a value of 20.