Reference Guide

Congure root bridge as primary
OS10(config)# spanning-tree vlan 1 root primary
OS10(config)# do commit
Verify root bridge information
OS10# show spanning-tree active
Spanning tree enabled protocol rapid-pvst with force-version rstp
VLAN 1
Executing IEEE compatible Spanning Tree Protocol
Root ID Priority 24577, Address 90b1.1cf4.a523
Root Bridge hello time 2, max age 20, forward delay 15
Bridge ID Priority 24577, Address 90b1.1cf4.a523
We are the root of VLAN 1
Configured hello time 2, max age 20, forward delay 15
Interface Designated
Name PortID Prio Cost Sts Cost Bridge ID PortID
----------------------------------------------------------------------
ethernet1/1/5 128.276 128 500 FWD 0 24577 90b1.1cf4.a523 128.276
ethernet1/1/6 128.280 128 500 LRN 0 24577 90b1.1cf4.a523 128.280
Interface
Name Role PortID Prio Cost Sts Cost Link-type Edge
-------------------------------------------------------------
ethernet1/1/5 Desg 128.276 128 500 FWD 0 AUTO No
ethernet1/1/6 Desg 128.280 128 500 LRN 0 AUTO No
Loop guard
This information explains how to congure loop guard on an interface.
Enable loop guard on a per-port or port-channel interface in INTERFACE mode.
spanning-tree guard {loop | root | none}
loop — Enables loop guard on an interface.
root — Enables root on an interface.
none — Enables the guard mode to none.
Disable loop guard on a port or port-channel interface in INTERFACE mode.
no spanning-tree guard loop
Port enabled with loop guard conditions
Loop guard is supported on any STP-enabled port or port-channel interface in RPVST+ mode.
You cannot enable root guard and loop guard at the same time on an STP port — the loop guard conguration overwrites an existing
root guard conguration and vice versa.
Enabling BPDU guard and loop guard at the same time on a port results in a port that remains in a Blocking state and prevents trac
from owing through it. For example, when you congure both Portfast BPDU guard and loop guard:
If a BPDU is received from a remote device, BPDU guard places the port in an Err-Disabled Blocking state and no trac forwards
on the port.
If no BPDU is received from a remote device which was sending BPDUs, loop guard places the port in a Loop-Inconsistent Blocking
state and no trac forwards on the port.
When used in a PVST+ network, STP loop guard performs per-port or per port-channel at a VLAN level. If no BPDUs are received on a
port-channel interface, the port or port-channel transitions to a Loop-Inconsistent (Blocking) state only for this VLAN.
Global parameters
All non-root bridges accept the timer values on the root bridge.
158
Layer 2