Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
10-13
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 10 Configuring STP Extensions
Verifying STP Extension Configuration
Ensure that you are configuring Loop Guard on spanning tree normal or network ports.
To enable Loop Guard or Root Guard on an interface, perform this task:
This example shows how to enable Root Guard on Ethernet port 1/4:
switch# configure terminal
switch (config)# interface ethernet 1/4
switch(config-if)# spanning-tree guard root
Verifying STP Extension Configuration
To display the configuration information for the STP extensions, perform one of the following tasks:
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# interface type slot/port
Specifies the interface to configure, and enters the
interface configuration mode.
Step 3
switch(config-if)# spanning-tree guard
{loop | root | none}
Enables or disables either Loop Guard or Root Guard
for the specified interface. By default, Root Guard is
disabled by default, and Loop Guard on specified
ports is also disabled.
Note Loop Guard runs only on spanning tree
normal and network interfaces.
Command Purpose
switch# show running-config
spanning-tree [all]
Displays the current status of spanning tree on the
switch
switch# show spanning-tree [options]
Displays selected detailed information for the current
spanning tree configuration.