Loop Detection commands

Use these M4500 CLI commands to enable loop detection globally or per port, set the loop action, and display loop detection status and statistics.

show loop-detection

Use this command to display the admin status and configured parameters of loop detection.

Format show loop-detection
Mode Privileged Exec

Display Message

Parameter Definition
Admin status Displays the admin state of loop detection
Transmit interval Displays the interval between transmission of PDUs (in second)
Max PDU Receive Displays the maximal number of PDU to be received by switch before an action is taken on the interface

show loop-detection statistics

Use this command to display the statistics of loop detection for all ports or specific interfaces.

Format show loop-detection statistics {<intf-range> | all}
Mode Privileged Exec
Parameter Definition
intf-range The interfaces for which to show statistics.
all Show statistics for all interfaces

Display Message

Parameter Definition
Port The slot and port associated with the interface.
Admin Status Shows whether the specified port is enabled or disabled.
Loop Detected The loop presence on the specified port.
Loop Count The loop count for the the specified port.
Time Since Last Loop The time since the last loop occured for the specified port.
Rx Action The action mode for the the specified port.
Port Status The admin state of the specified interface.

loop-detection (Global Config)

Use this command to enable loop-detection functionality and configure the transmission interval and the maximal packets to be received before an action is taken.

Use no form of this command to reset to default.

Default Disabled
Format [no] loop-detection [<1-10> [1-10]]
Mode Global Config
Parameter Definition
<1-10> Configure the interval between transmission of PDUs in second (Default is 5)
<1-10> Configure the maximal number of PDU to be received by switch before an action is taken on the interface (Default is 1)

loop-detection (Interface Config)

Use this command to enable loop-detection on the interface.

Use no form of this command to reset to default.

Default Disabled
Format [no] loop-detection
Mode Interface Config

loop-detection action

Use this command to configure the action to be taken on an interface when a loop is detected.

Use no form of this command to reset to default.

Default both
Format [no] loop-detection action {both | disable | log}
Mode Interface Config
Parameter Definition
both Logs and disables the port
disable Shuts down the port. This is the default
log Only logs the message. The log mode only logs the message to buffer logs without bringing the port down