Layer 2 Switching Commands 754
console(config)#spanning-tree max-age 10
spanning-tree max-hops
Use the spanning-tree max-hops command to set the MSTP Max Hops
parameter to a new value for the common and internal spanning tree. Use the
“no” form of this command to reset the Max Hops to the default.
Syntax
spanning-tree max-hops hops
no spanning-tree max-hops
• hops — The maximum number of hops to use (Range: 6 to 40).
Default Configuration
The maximum number of hops is 20 by default.
Command Mode
Global Configuration mode
User Guidelines
There are no user guidelines for this command.
Example
console(config)#spanning-tree max-hops 32
spanning-tree mode
Use the spanning-tree mode command in Global Configuration mode to
configure the spanning-tree protocol. To return to the default configuration,
use the no spanning-tree form of this command.
Syntax
spanning-tree mode {stp | rstp | mst | pvst | rapid-pvst}
• stp — Spanning Tree Protocol (STP) is enabled.
• rstp — Rapid Spanning Tree Protocol (RSTP) is enabled.