spanning-tree max-hops

Syntax

spanning-tree max-hops<跳跃数>没有spanning-tree max-hops [<跳跃数>]

描述

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没有form of this command sets the maximum number of hops to the default of 20.

Command context

config

Parameters

<跳跃数>

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

权威

Administrators or local user group members with execution rights for this command.

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)#没有spanning-tree max-hops