Configuring Packet InError Detection
- Run the
errdisable packet-inerror-detectcommand in global configuration mode to enable the feature and to define the sampling time interval. - Run the
packet-inerror-detectcommand in interface configuration mode of the port that you want to monitor for inError packets. - (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 causeanderrdisable recovery intervalcommands 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.