spanning-tree guard

To enable or disable Loop Guard or Root Guard, use the spanning-tree guard command. To return to the default settings, use the no form of this command.

spanning-tree guard {loop | none | root}

no spanning-tree guard

Syntax Description

loop

Enables Loop Guard on the interface.

none

Sets the guard mode to none.

root

Enables Root Guard on the interface.


Command Default

Disabled

Command Modes

Interface configuration mode

Command History

Release
Modification

4.0(0)N1(1a)

This command was introduced.


Usage Guidelines

You cannot enable Loop Guard if Root Guard is enabled, although the switch accepts the command to enable Loop Guard on spanning tree edge ports.

Examples

This example shows how to enable Root Guard:

switch(config-if)# spanning-tree guard root  

Related Commands

Command
Description

show spanning-tree summary

Displays information about the spanning tree state.