Perform the following steps to configure port flap dampening:
-
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 0/4
-
Configure port flap dampening.
device(conf-if-eth-0/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.
The following example shows the steps in the previous configuration.
device# configure terminal
device(config)# interface Ethernet 0/4
device(conf-if-eth-0/4)# link-error-disable 10 3 10