Chapter 2
Ethernet Commands
S e n d c o m m e n t s t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
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.
Syntax Description
loop
none
root
Command Default
Disabled.
Command Modes
Interface configuration mode
Command History
Release
4.0(0)N1(1a)
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
show spanning-tree
summary
OL-16599-01
spanning-tree guard {loop | none | root}
no spanning-tree guard
Enables Loop Guard on the interface.
Sets the guard mode to none.
Enables Root Guard on the interface.
Modification
This command was introduced.
Description
Displays information about the spanning tree state.
Cisco Nexus 5000 Series Command Reference
spanning-tree guard
2-53
Need help?
Do you have a question about the AP775A - Nexus Converged Network Switch 5010 and is the answer not in the manual?
Questions and answers