3.12.19. spanning-tree max-hops

Syntax

spanning-tree max-hops counts

no spanning-tree max-hops

Parameter


counts Specify the number of hops in an MSTP regision before the BPDU is discarded. The valid range is 1 to 40.


Default

The default max-hops configuration is 20.

Mode

Global Configuration

Usage

To specify the number of hops for a BPDU to be forwarded in the MSTP region, use the command spanning-tree max-hops in the Global Configuration mode; and restore the setting to default configuration by the no form of the command.

Example

The following example specifies the max hops for BPDU to 10.

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