Monday, January 23, 2017

The MSTP Configuration of stp max-hops

Function

The stp max-hops command is used to set the maximum hops for an Multiple Spanning Tree (MST) region. To limit the network scale of the MST region, you need to set maximum hops. After the maximum hops for the MSTP region is set, the configuration message (BPDU packets) is forwarded from the root device of the spanning tree and the hop count in the BPDU packets decreases 1 by each hop from the maximum hops.
The undo stp max-hops command is used to restore the default maximum hops for an MST region. To limit the MST region in the default scale, run this command to restore the default maximum hops. After the default maximum hops for an MST region is restored, the maximum hops of the device is 20.

Format

stp max-hops hop-count
undo stp max-hops

Parameters

Parameter Description Value
hop-count Indicates the maximum hops for the MST region. Numeral type. Range: 1-40.
Default: 20.

Modes

Global config mode, OSN 2500, OSN 7500

Level

Operator level

Usage Guidelines

  • The larger the maximum hops for the MST region is, the larger the scale of the MST region is. Only the maximum hops for the MST region which is configured on the root device of the region can limit the scale of the region. The non root bridge in the MST region adopts the maximum hops of the root bridge.
  • The configuration message (BPDU packets) is forwarded from the root device of the spanning tree in the MST region. When the BPDU packets is forwarded by a switch each time, the hop count decreases one. The device discards the received BPDU packets whose hop count is 0 to limit the scale of the MST region.
  • If the current device becomes the Common and Internal Spanning Tree (CIST) root bridge device in the MST region or MSTI root bridge device, the maximum hop count configured for this bridge device becomes the network diameter of the spanning tree to limit the scale of the spanning tree in the current MST region.

Example

To set the maximum hops for MST region to 10, do as follows:
huawei(config)#stp max-hops                                                     
{ integer<U><1,40> }:10                                                         
                                                                                
  Command:                                                                      
          stp max-hops 10   
To restore the default maximum hops for MST region, do as follows:
huawei(config)#undo stp max-hops 

No comments:

Post a Comment