By default, port flap dampening is disabled on the device. You can configure the threshold of link flapping to shut down the port and the time interval in which it remains shut down. This feature is available for all front ports on the device and is configured on the interface level.
About this task
Perform the following steps to configure port flap dampening:
Procedure
-
From privileged EXEC mode, access global configuration mode.
device# configure terminal
-
Access the interface configuration mode for the port that you want to configure.
device(config)# interface Ethernet 1/4
-
Configure port flap dampening.
device(conf-if-eth-1/4)# link-error-disable 10 3 10
In this example, the values for the parameters are as follows:
- The toggle threshold is set to 10 times. The threshold is the number of times that the port‘s link state goes from up to down and down to up before the wait period is activated.
- The sampling time is set to 3 seconds. This time period is the amount of time during which the specified toggle threshold can occur before the wait period is activated.
- The wait time is set to 10 seconds. This period of time is the amount of time the port remains disabled (down) before it becomes enabled. Entering 0 indicates that the port will stay down until an administrative override occurs.
Example
The following example shows the steps in the previous configuration.
device# configure terminal
device(config)# interface Ethernet 1/4
device(conf-if-eth-1/4)# link-error-disable 10 3 10