Saturday, February 4, 2017

The MSTP Configuration of stp priority secondary

Function Description

The multiple spanning tree protocol (MSTP) applies to the redundant network. MSTP is an improvement of STP and RSTP. MSTP prevents the proliferation and infinite cycling of the packets in the loop network. In addition, MSTP provides multiple redundant paths for VLAN data transmission to achieve the load-sharing purpose. The MA5680T/MA5683T/MA5608T supports MSTP, which is compatible with the STP and RSTP. It supports MSTP loop network that helps meet various networking requirements.

Function

The stp priority secondary command is used to set the secondary priority of the device in spanning tree instance 0. The secondary priority of the device determines whether another device can be selected as the root bridge of the spanning tree after the upstream port of the original root bridge in the ring network is faulty. To set the secondary priority of the device so that a specified device (that is, the standby root bridge) can be selected as the root bridge of the spanning tree after the upstream port of the original root bridge in the ring network is faulty, run this command. After the secondary priority of the device is set, the configured value determines whether to switch the root bridge in spanning tree instance 0 after the upstream port of the original root bridge is faulty.
The undo stp priority secondary command is used to restore the secondary priority of the device in a specified spanning tree instance to the default value. After the secondary priority is restored to the default value, the secondary priority of the device is 61440.

Format

stp priority secondary priority
undo stp priority secondary

Parameters

Parameter Description Value
priority Indicates the secondary priority of the device. This value must use a step of 4096. The device priority increases with the decrease of the configured value. Numeral type. Range: 0-61440.
Default: 61440.

Modes

Global config mode

Level

Operator level

Usage Guidelines

  • The device with a lower secondary priority is more likely to be selected as the root bridge of the spanning tree.
  • The secondary priority must be lower than the primary priority of the root bridge device. It is recommended that you set the priorities as follows: Primary priority of the root bridge > (higher than) Priority of the standby root bridge > Secondary priority of the root bridge > Priorities of the remaining devices in the CIST instance.
  • The secondary priority of the device is involved in the spanning tree calculation only after it is triggered. Generally, it is recommended that you set the secondary priority only for the root bridge device in spanning tree instance 0 (that is, CIST instance), and bind the secondary priority to the default multicast upstream port. The secondary priority is triggered to take effect only when the bound port is faulty.
  • This priority takes effect only in the CIST instance.
  • The secondary priority can be set only for spanning tree instance 0 and must be bound to a port. The secondary priority is triggered to take effect only when the bound port is faulty. The recommended port to be bound is the default multicast upstream port of spanning tree instance 0.
  • When the secondary priority takes effect and the root bridge of the spanning tree is to be selected, the device with a smaller MAC address is selected as the root bridge if the priorities of the devices are the same.

Example

To set the secondary priority of the device in the CIST instance of the spanning tree to 4096, do as follows:
huawei(config)#stp priority secondary                                              
{ bind<K>|integer<U><0,61440> }:4096                                                    
                                                                                
  Command:                                                                      
          stp priority secondary 4096 
To restore the secondary priority of the device in the CIST instance of the spanning tree to the default value, do as follows:
huawei(config)#undo stp priority secondary

No comments:

Post a Comment