Configuring Packet InError Detection

Perform the following steps to configure Packet InError Detection:
  1. Run the errdisable packet-inerror-detect command in global configuration mode to enable the feature and to define the sampling time interval.
  2. Run the packet-inerror-detect command in interface configuration mode of the port that you want to monitor for inError packets.
  3. (Optional) If you want the ports to automatically recover from the error-disabled state after the expiry of a configured recovery timer, run the errdisable recovery cause and errdisable recovery interval commands in global configuration mode. For more details, see “Enabling an error-disabled port automatically” on page 15 and Setting the Recovery Interval.

The following example shows the configuration of Packet InError Detection on a device and its Ethernet interface 1/1/1.

device(config)# errdisable packet-inerror-detect interval 3
device(config)# errdisable recovery cause packet-inerror-detect
device(config)# errdisable recovery interval 20
device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# packet-inerror-detect 10

The ethernet interface 1/1/1 becomes disabled if more than 10 inError packets are received in each of two consecutive 3-second intervals. After the interface is disabled, it automatically recovers to the enabled state after 20 seconds.