Administrator Guide

Layer 2 Switching Commands 771
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.
mst
— Multiple Spanning Tree Protocol (MSTP) is enabled.
pvst
Spanning-tree operates in
STP-PV
mode.
2CSNXXX_SWUM204.book Page 771 Monday, January 25, 2016 1:25 PM