The mac-address flapping action priority command sets the priority for the action against MAC address flapping on an interface.
The undo mac-address flapping action priority command restores the default configuration.
By default, the action against MAC address flapping on an interface is 127.
Parameter |
Description |
Value |
---|---|---|
priority |
Specifies the priority of the action against MAC address flapping on an interface. |
The value is an integer that ranges from 0 to 255. A larger value indicates a higher priority. The default value is 127. |
Ethernet interface view, GE interface view, XGE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, Eth-Trunk interface view, port group view, 25GE interface view
Usage Scenario
When the switch connects to a user network that does not support loop prevention protocols, configure a loop prevention action for the switch to perform when detecting MAC address flapping. This reduces the impact of MAC address flapping on the user network. The mac-address flapping action priority command sets the priority of the action.
When a MAC address flaps between two interfaces and both the interfaces have an action and priority configured, the switch performs the action (error-down or quit-VLAN) configured on the interface with lower priority. If the two interfaces have the same priority, the switch performs the action on the interface that learns the MAC address later. If the later interface has no action configured, the switch performs the action on the interface that learns the MAC address earlier.
The switch compares priorities of the interfaces only when the interfaces have the same action configured. If one interface is configured with the error-down action, and the other is configured with the quit-VLAN action, the switch performs the actions on both interfaces even if their priorities are same.
Precautions
If you run the mac-address flapping action priority command multiple times in the same interface view, only the latest configuration takes effect.