348 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 configured.
Command Modes
Global Configuration mode.
User Guidelines
• In RSTP mode, the switch would use STP when the neighbor switch is using STP.
• In MSTP mode the switch would use RSTP when the neighbor switch is using RSTP, and would use
STP when the neighbor switch is using 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 reset the default forward time.
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 IEEE Spanning-tree Protocol (STP) is 15 seconds.
Command Modes
Global Configuration mode.
Console(config)# spanning-tree mode rstp
5400_CLI.book Page 348 Wednesday, December 17, 2008 4:33 PM