API Guide

spanning-tree vlan root
Designates a device as the primary or secondary root bridge.
Syntax
spanning-tree vlan vlan-id root {primary | secondary}
Parameters
vlan-id Enter a VLAN ID number, from 1 to 4093.
root Designate the bridge as the primary or secondary root.
primary Designate the bridge as the primary or root bridge.
secondary Designate the bridge as the secondary or secondary root bridge.
Default Not configured
Command Mode CONFIGURATION
Usage
Information
None
Example
OS10(config)# spanning-tree vlan 1 root primary
Supported
Releases
10.2.0E or later
Rapid Spanning-Tree Protocol
Rapid Spanning-Tree Protocol (RSTP) is similar to STP, but provides faster convergence and interoperability with devices
configured with STP and MSTP. RSTP is disabled by default. All enabled interfaces in L2 mode automatically add to the RSTP
topology.
Configuring RSTP is a two-step process:
1. Ensure that the interfaces are in L2 mode.
2. Globally enable RSTP.
Enable STP globally and at interface
RSTP enables STP on all physical and port-channel interfaces which are in L2 mode to automatically include the interfaces as
part of the RSTP topology. Only one path from a bridge to any other bridge is enabled. Bridges block a redundant path by
disabling one of the link ports.
Enable globally
Configure Spanning-Tree mode to RSTP in CONFIGURATION mode.
spanning-tree mode rstp
Disable RSTP globally for all L2 interfaces in CONFIGURATION mode.
spanning-tree disable
Re-enable RSTP globally for all L2 interfaces in CONFIGURATION mode.
no spanning-tree disable
Enable at interface
Remove an interface from the RSTP topology in INTERFACE mode.
spanning-tree disable
Re-enable an interface in INTERFACE mode.
no spanning-tree disable
488
Layer 2