Controlling Link State Changes

Configure link flap detection to control state changes on a physical port.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Configure the interval for link state changes:

    link-flap-detect interval <2-600>

  3. Configure the number of changes allowed during the interval:

    link-flap-detect frequency <1-9999>

  4. Enable automatic port disabling:

    link-flap-detect auto-port-down

  5. Enable sending a trap:

    link-flap-detect send-trap

Example

Enable automatic disabling of the port:

Switch:1(config)#link-flap-detect auto-port-down

Configure the link-flap-detect interval:

Switch:1(config)#link-flap-detect interval 20 

Enable sending traps:

Switch:1(config)#link-flap-detect send-trap 

Variable Definitions

Use the data in the following table to use the link-flap-detect command.

Variable

Value

<auto-port-down>

Automatically disables the port if state changes exceed the link-flap threshold. By default, auto-port-down is enabled. Use the no operator to remove this configuration. To set this option to the default value, use the default operator with the command.

frequency <1-9999>

Configures the number of changes that are permitted during the time specified by the interval command.

The default is 20. To set this option to the default value, use the default operator with the command.

interval <2-600>

Configures the link-flap-detect interval in seconds.

The default value is 60. To set this option to the default value, use the default operator with the command.

send-trap

Activates traps transmission. The default setting is activated. Use the no operator to remove this configuration. To set this option to the default value, use the default operator with the command.