The port link-flap threshold command sets the maximum number of link flapping events on an interface.
The undo port link-flap threshold command restores the default maximum number of link flapping events on an interface.
By default, the maximum number of link flapping events is 5.
Parameter |
Description |
Value |
---|---|---|
threshold threshold-value |
Specifies the maximum number of link flapping events on an interface. |
The value is an integer that ranges from 5 to 10. The default value is 5. |
Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view
Usage Scenario
Link flapping occurs when the physical status of an interface frequently alternates between Up and Down due to network flapping or network cable faults. Link flapping causes frequent network topology changes and affects user communication. For example, two links work in primary/backup mode. If the interface of the primary link experiences frequent Up/Down transitions, flows are switched between the primary and backup links. Frequent service switchovers increase load of the device and may result in service data loss.
Prerequisites
The port link-flap threshold command configuration takes effect only after link flapping protection is enabled using the port link-flap protection enable command on the interface.
Precautions
If you run the port link-flap threshold command multiple times in the same interface view, only the latest configuration takes effect.