750 Spanning Tree Commandsspanning-tree guardThe spanning-tree guard command selects whether loop guard or root guardis enabled on an interface. If neither is enabled, the port operates inaccordance with the multiple spanning tree protocol. Use the “no” form ofthis command to disable loop guard or root guard on the interface.Syntaxspanning-tree guard {root | loop | none}• root — Enables root guard.• loop — Enables loop guard• none — Disables root and loop guard.Default ConfigurationNeither root nor loop guard is enabled.Command ModeInterface Configuration (Ethernet, Port Channel) mode.User GuidelinesThere are no user guidelines for this command.ExampleThe following example disables spanning-tree guard functionality on gigabitethernet interface 4/0/1.console#configconsole(config)#interface gigabitethernet 4/0/1console(config-if-4/0/1)#spanning-tree guard nonespanning-tree loopguardUse the spanning-tree loopguard command to enable loop guard on all ports.Use the “no” form of this command to disable loop guard on all ports.Syntaxspanning-tree loopguard default