clear loop-detection

Enables ports that were disabled by the loop detection (LD) protocol, and clears LD statistics at the global, interface, or VLAN level.

Syntax

clear loop-detection [ interface { ethernet interface | port-channel interface } | vlan vlan-id ]

Command Default

This feature is disabled.

Parameters

interface
Specifies an Ethernet or port-channel interface.
ethernetinterface
Specifies an Ethernet interface.
port-channelinterface
Specifies a port-channel interface.
vlan vlan-id
Specifies a VLAN.

Modes

Privileged EXEC mode

Examples

To enable LD-disabled ports and clear LD statistics on all interfaces:

device# clear loop-detection

To enable LD-disabled ports and clear LD statistics on an Ethernet interface:

device# clear loop-detection interface ethernet 2/6

To enable LD-disabled ports and clear LD statistics on a port-channel interface:

device# clear loop-detection interface port-channel 20

To enable LD-disabled ports and clear LD statistics on a VLAN:

device# clear loop-detection interface vlan 10