loop-protect

Syntax

loop-protect

no loop-protect

Description

Enables loop protection on a layer 2 interface or LAG. Loop protection packets are sent/received on the LAG and not the interface which are members of the LAG. Loop protection only works on layer 2 interfaces. If a layer 2 interface is changed to a layer 3 interface, all loop protection configuration settings are lost for that interface.

The no form of this command disables loop protection on a layer 2 interface or LAG.

Command context

config-if

Command context

config-if

Authority

Administrators or local user group members with execution rights for this command.

Examples

This example enables loop protection on interface 1/1/1.

switch# config
switch(config)# interface 1/1/1
switch(config-if)# loop-protect

This example enables loop protection on LAG 25.

switch# config
switch(config)# interface lag 25
switch(config-lag-if)# loop-protect