set protocols spanning-tree mstp max-hops


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:

  • The number of remaining hops in a BPDU sent by the root switching device equals the maximum number of hops.
  • The number of remaining hops in a BPDU sent by a non-root switching device equals the maximum number of hops minus the number of hops from the non-root switching device to the root switching device.
  • If a switching device receives a BPDU in which the number of remaining hops is 0, the switching device will discard the BPDU.


Example

  • Set the maximum hops of a spanning tree to 15 when MSTP is running.
admin@Xorplus# set protocols spanning-tree mstp max-hops 15
admin@Xorplus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.