Configuring Shutdown Control

About Shutdown Control

The shutdown control function allows you to configure a limit on the number of messages received on a port. If the threshold limit is exceeded, the port is shut down. This prevents bandwidth and device failure and protects other connected devices.

A shutdown port can be restored in the following ways.

  • You can manually open the port using the no shutdown command.

  • You can configure the automatic recovery mode and set a recovery time to restore the port.

How to Configure Shutdown Control

Enabling the Shutdown Control

To enable the shutdown control, perform this function.

Procedure

  Command or Action Purpose

Step 1

enable

Example:

Device> enable 

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2

configure terminal

Example:

Device# configure terminal 

Enters global configuration mode.

Step 3

interface ethernet port-number

Example:

Device(config)#  

Enter the port configuration mode.

Step 4

[no] shutdown-control {broadcast | multicast | unicast } {rate}

Example:

Device(config)#  

Enables shutdown control.

  • broadcast : The broadcast packets to be monitored.

  • multicast : The multicast packets to be monitored.

  • unicast : The unicast packets to be monitored.

  • rate : The threshold value of allowed number of packets

Use the no shutdown-control {broadcast |multicast | unicast} command to disable the shutdown rate.

Configuring the Port Recovery Mode

To configure the port recovery mode, perform this procedure.

Procedure

  Command or Action Purpose

Step 1

enable

Example:

Device> enable 

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2

configure terminal

Example:

Device# configure terminal 

Enters global configuration mode.

Step 3

[no] shutdown-control-recover mode {automatic | manual}

Example:

Device(config)# shutdown-control-recover mode automatic 

Enables the configured recovery mode.

  • automatic : The mode is configured as automatic.

  • manual : The mode is configured as manual.

Use the no shutdown-control-recover command to restore the default configuration.

Step 4

[no] shutdown-control-recover automatic-open-time value

Example:

Device(config)#  

Restarts the port after the recovery time is expired. .

Use the no shutdown-control-recover command to restore the default value of 480s.

Manually Restore a Shutdown Port

To manually restore a shutdown port, perform this procedure.

Procedure

  Command or Action Purpose

Step 1

enable

Example:

Device> enable 

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2

configure terminal

Example:

Device# configure terminal 

Enters global configuration mode.

Step 3

interface ethernet port-number

Example:

Device(config)# interface ethernet 0/1 

Enters the port configuration mode.

Step 4

no shutdown

Example:

Device(config-if-ethernet-0/1)# no shutdown 

Restores the shut down port.

Use the shutdown port command to shutdown the port manually.

Monitoring Shutdown Control Configuration

The commands in the following table can be used to monitor shutdown control configurations.

Table 1. Monitoring Shutdown Control Cofiguration

Command

Purpose

show shutdown-control interface [ ethernet port-number]

Displays the shutdown configuration.

show shutdown-control interface [ethernet port-number]

Displays the port recovery configuration.

Example: Configuring Shut Down Control

The following example shows how to enable the unknown unicast shut down control function and set the rate to 1000 pps

Device> enable
Device# configure terminal 
Device(config)# interface ethernet 1/2
Device(config-if-ethernet-1/2)# shutdown-control unicast 1000
Device(config-if-ethernet-1/2)# exit

The following example shows how to view the configuration Information

Device> enable
Device# configure terminal 
Device(config)# show shutdown-control interface ethernet 1/2 
port shutdown control recover mode : automatic
Port recover time(second)  : 480
port shutdown control information :
PortID   Broadcast Broadcast Multicast Multicast Unicast Unicast  RemainTime
status    value     status    value     status  value 
e1/2   disable   -         disable   -         enable  1000     -
Total entries: 1 .

The following example shows how to view the configuration Information

Device> enable
Device# configure terminal 
Device(config)# show shutdown-control interface ethernet 1/2 
port shutdown control recover mode : automatic
Port recover time(second)  : 480
port shutdown control information :
PortID   Broadcast Broadcast  Multicast Multicast   Unicast Unicast    RemainTime
         status    value     status    value     status  value   
e1/2   disable   -         disable   -         enable  1000     07min48sec
Total entries: 1 .

The following example shows how to view the configuration Information

Device> enable
Device# configure terminal 
Device(config)# show interface brief ethernet 1/2 
Port    Desc   Link  shutdn  Speed   Pri PVID  Mode TagVlan    UtVlan
e1/2     down  ERROR  auto    0   1    hyb             1
Total entries: 1 .