358 Spanning-Tree Commands
Syntax
•
spanning-tree mode
{
stp
|
rstp
|
mstp
}
• no spanning-tree mode
•
stp
— STP is the Spanning Tree operative mode.
•
rstp
— RSTP is the Spanning Tree operative mode.
•
mstp
— MSTP is enabled.
Default Configuration
STP is enabled.
Command Mode
Global Configuration mode.
User Guidelines
• In RSTP mode, the device uses STP when the neighbor device uses STP.
• In MSTP mode, the device uses RSTP when the neighbor device uses RSTP and uses STP when the
neighbor device uses STP.
Example
The following example configures the spanning-tree protocol to RSTP.
spanning-tree forward-time
The spanning-tree forward-time Global Configuration mode command configures the spanning-tree
bridge forward time, which is the amount of time a port remains in the listening and learning states
before entering the forwarding state. Use the no form of this command to return to the default
configuration.
Syntax
•
spanning-tree forward-time
seconds
• no spanning-tree forward-time
•
seconds
— Time in seconds. (Range: 4 - 30)
Default Configuration
The default forwarding time for the IEEE Spanning Tree Protocol (STP) is 5 seconds.
console(config)# spanning-tree mode rstp
book.book Page 358 Thursday, December 18, 2008 7:40 PM