Spanning Tree (STP) Commands | 319
Mode
Global Config
spanning-tree max-hops
This command sets the MSTP Max Hops parameter to a new value for the common and internal 
spanning tree. The max-hops value is in a range of 1 to 127.
The no version of this command sets the Bridge Max Hops parameter for the common and internal 
spanning tree to the default value.
Syntax
spanning-tree max-hops 1-127
[no] spanning-tree max-hops
Default
20
Mode
Global Configspanning-tree max-hops
This command sets the MSTP Max Hops parameter to a new value for the common and internal 
spanning tree. The max-hops value is in a range of 1 to 127.
Default   20
Format   spanning-tree max-hops <1-127>
Mode   Global Config
no spanning-tree max-hops
This command sets the Bridge Max Hops parameter for the common and internal spanning tree 
to the default value, i.e. 20.
Format   no spanning-tree max-hops
Mode   Global Config
spanning-tree mst
This command sets the Path Cost or Port Priority for this port within the multiple spanning tree 
instance or in the common and internal spanning tree. If the <mstid> parameter corresponds to an 
existing multiple spanning tree instance, then the configurations are done for that multiple spanning 
tree instance. If however 0 (defined as the default CIST ID) is passed as the <mstid>, then the 
configurations are performed for the common and internal spanning tree instance.
If the ‘cost’ token is specified, this command sets the path cost for this port within a multiple spanning 
tree instance or the common and internal spanning tree instance, depending on the <mstid> parameter. 
The pathcost can be specified as a number in the range of 1 to 200000000 or auto. If “auto” is 
specified, the pathcost value will be set based on Link Speed.
If the ‘external-cost’ token is specified, this command sets the external-path cost for MST instance ‘0’ 
i.e. CIST instance. The external pathcost can be specified as a number in the range of 1 to 200000000 
or auto. If “auto” is specified, the external pathcost value will be set based on Link Speed.
If the ‘port-priority’ token is specified, this command sets the priority for this port within a specific 
multiple spanning tree instance or the common and internal spanning tree instance, depending on the 
<mstid> parameter. The port-priority value is a number in the range of 0 to 240 in increments of 16.