1173
Cisco Nexus 5500 Series NX-OS Layer 2 Interfaces Command Reference
OL-27880-02
Chapter S Commands
spanning-tree guard
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
Command Default
Disabled
Command Modes
Interface configuration mode
Command History
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
loop
Enables Loop Guard on the interface.
none
Sets the guard mode to none.
root
Enables Root Guard on the interface.
Release
Modification
5.2(1)N1(1)
This command was introduced.
Command
Description
show spanning-tree
summary
Displays information about the spanning tree state.