The set protocols spanning-tree mstp max-hops command sets the maximum hops of a spanning tree when MSTP is running.


Command Syntax

set protocols spanning-tree mstp max-hops <max-hops>


Parameter

Parameter

Description

max-hops <max-hops>

Specifies the maximum hops of a spanning tree. The value is an integer that ranges from 6 to 40. The default value is 20.


Usage Guidelines

The maximum number of hops of a spanning tree in an MST region determines the network scale.

An MST BPDU has a field that indicates the number of remaining hops:


Example

admin@Xorplus# set protocols spanning-tree mstp max-hops 15
admin@Xorplus# commit