spanning-tree max-age

Syntax

spanning-tree max-hops <HOP-COUNT>

no spanning-tree max-hops [<HOP-COUNT>]

Description

Configures the max hop setting that the switch inserts into BPDUs that it sends out as the root bridge. The max hop setting determines the number of bridges in an MST region that a BPDU can traverse before it is discarded.

The no form of this command sets the maximum number of hops to the default of 20.

Command context

config

Parameters

<HOP-COUNT>

Specifies the maximum number of hops. Default: 20. Range: 1-40.

Authority

Administrators

Examples

Setting the hop count to 10:

switch(config)# spanning-tree max-hops 10

Setting the max-age to the default of 20:

switch(config)# no spanning-tree max-hops