Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Changing Duplicate MAC Address Detection Settings

When a host is physically moved or when a host is reconfigured on a different Ethernet segment, the PE device sends an updated MAC advertisement route to other PE devices to update their route table. If there is a misconfiguration in the network, MAC advertisement messages oscillate between the different routes causing MAC address flapping. This makes the network more vulnerable and wastes network resources. Junos supports MAC mobility automatically by default. To disable MAC mobility, use the set protocols evpn mac-mobility no-sequence-numbers statement.

Junos OS also automatically detects and suppresses duplicate MAC addresses. Optionally, you can also configure the length of time that the duplicate MAC address is suppressed. When the PE device encounters duplicate MAC addresses, Junos OS generates a syslog message.

To change the duplicate MAC address detection settings , include the duplicate-mac-detection statement at either the [edit routing-instances routing-instance-name protocols] hierarchy level or the[edit logical-systems logical-system-name routing-instances routing-instance-name protocols] hierarchy level:

You can modify the following options under the duplicate-mac-detection statement:

  • detection-window—The time interval used in detecting a duplicate MAC address. The value can be from 5 through 600 seconds. The default is 180 seconds

  • detection-threshold—The number of MAC mobility events that are detected for a given MAC address within the detection-window before it is identified as a duplicate MAC address. Once the detection threshold is reached, updates for the MAC address are suppressed. The value can be from 2 through 20. The default is 5.

  • auto-recovery-time—(Optional) The length of time a device suppresses a duplicate MAC address. At the end of this duration, MAC address updates will resume. The value can be from 1 through 360 minutes. If a value is not specified, then the MAC address continues to be suppressed.

Note:

To ensure that the mobility advertisements have sufficient time to age out, set an auto-recovery-time greater than the detection-window.

To manually clear the suppression of duplicate MAC addresses, use the clear evpn duplicate-mac-suppression command.

To view MAC duplicate addresses in the EVPN MAC database, use the show evpn database command. The following example displays a sample output. The output fields related to duplicate MAC detections are State, Mobility history, and MAC advertisement route status: