3.13.2 Loop Protection General Settings for Switch Port

Use this command to configure the Loop protection parameters for the switch port.

Command Syntax:

loop-protect 
loop-protect action { [ shutdown ] [ log ] }
loop-protect tx-mode
Table 3-69. Command Description

Argument

Description

Parameter

shutdown

Shutdown the port when the Loop is detected

log

Log only when the Loop is detected

tx-mode

Controls whether the port is actively generating loop protection PDU's, or whether it is just passively looking for looped PDU's.

Default

N.A

Mode

Port List Interface mode

Usage

Enable/disable the Loop protection on a switch port and configure Loop protection parameters.

Example

Example 1:

Enable loop protection on port 1, set it to shut down and log when a loop is detected, and disable TX mode.

# configure terminal
(config)# interface GigabitEthernet 1/1
(config-if)# loop-protect
(config-if)# loop-protect action shutdown log
(config-if)# no loop-protect tx-mode