C613-50170-01 Rev B
Command Reference for x510 Series
676
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
PANNING
T
REE
C
OMMANDS
SPANNING
-
TREE
MAX
-
HOPS
(MSTP)
spanning-tree max-hops (MSTP)
Overview
Use this command to specify the maximum allowed hops for a BPDU in an MST
region. This parameter is used by all the instances of the MST region.
Use the
no
variant of this command to restore the default.
Use this command for MSTP only.
Syntax
spanning-tree max-hops <
hop-count
>
no spanning-tree max-hops <
hop-count
>
Default
The default max-hops in a MST region is 20.
Mode
Global Configuration
Usage
Specifying the max hops for a BPDU prevents the messages from looping
indefinitely in the network. The hop count is decremented by each receiving port.
When a device receives an MST BPDU that has a hop count of zero, it discards the
BPDU.
Examples
awplus#
configure terminal
awplus(config)#
spanning-tree max-hops 25
awplus#
configure terminal
awplus(config)#
no spanning-tree max-hops
Parameter
Description
<hop-count>
Specify the maximum hops the BPDU will be valid for in the range
<1-40>.