Skip to content

L2RIB

L2RIB (Layer 2 Routing Information Base) configuration manages the EVPN MAC mobility settings on NX-OS devices, including duplicate MAC address detection and recovery. A MAC address is marked as duplicate when it moves the configured number of times within the detection duration; L2RIB then periodically retries learning the duplicate MAC after the recovery timeout, up to the configured retry count. These settings are typically aligned across all VTEP leaf switches in a VXLAN EVPN fabric.

Diagram
NameTypeConstraintMandatoryDefault Value
devicesListdevicesNo
device_groupsListdevice_groupsNo
globalClassglobalNo
templatesListtemplatesNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
configurationClassconfigurationNo

NameTypeConstraintMandatoryDefault Value
systemClasssystemNo

NameTypeConstraintMandatoryDefault Value
l2ribClassl2ribNo

NameTypeConstraintMandatoryDefault Value
dup_host_mac_detection_movesIntegermin: 1, max: 1000No
dup_host_mac_detection_durationIntegermin: 2, max: 36000No
dup_host_mac_recovery_timeoutIntegermin: 0, max: 1800No
dup_host_mac_recovery_retry_countIntegermin: 0, max: 3000No

Example 1: VXLAN leaf with tuned duplicate MAC detection

nxos:
devices:
- name: LEAF1
configuration:
system:
l2rib:
dup_host_mac_detection_moves: 10
dup_host_mac_detection_duration: 300

Example 2: VXLAN leaf with duplicate MAC detection and recovery

nxos:
devices:
- name: LEAF2
configuration:
system:
l2rib:
dup_host_mac_detection_moves: 10
dup_host_mac_detection_duration: 300
dup_host_mac_recovery_timeout: 60
dup_host_mac_recovery_retry_count: 5