Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
2-53
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 2 Ethernet 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
4.0(0)N1(1a) This command was introduced.
Command Description
show spanning-tree
summary
Displays information about the spanning tree state.