Got it

[All About Switches] Q&A: How Do I Enable MSTP?

Latest reply: Jun 30, 2018 09:12:13 1320 1 1 0 0


Among the spanning tree protocols, MSTP is compatible with RSTP and STP, and RSTP is compatible with STP. MSTP has fast convergence. Multiple spanning trees perform load balancing and transmit traffic in different VLANs along different paths. To enable MSTP, perform the following steps:

Step 1: Run the stp mode mstp command in the system view to set the STP working mode to MSTP.

Step 2: Configure and activate an MST region. An example is as follows:

<HUAWEI> system-view

[HUAWEI] stp region-configuration

[HUAWEI-mst-region] region-name RG1 //Configure a region named RG1.

[HUAWEI-mst-region] instance 1 vlan 2 to 10 //Map VLANs 2 through 10 to MSTI 1.

[HUAWEI-mst-region] instance 2 vlan 11 to 20 //Map VLANs 11 through 20 to MSTI 2.

[HUAWEI-mst-region] active region-configuration //Activate the MST region configuration.

[HUAWEI-mst-region] quit

Two switches belong to the same MST region only if they have the same MST region name, MSTI-VLAN mapping, and MST region revision level.

Step 3: Configure the root bridge and secondary root bridge. An example is as follows:

# Configure SwitchA as the root bridge in MSTI 1.

[SwitchA] stp instance 1 root primary

# Configure SwitchB as the secondary root bridge in MSTI 1.

[SwitchB] stp instance 1 root secondary

Step 4: Set the path costs of the ports. An example is as follows:

# Configure SwitchC to use Huawei's proprietary algorithm to calculate the path cost and set the path cost of GE0/0/2 to 20000 in MSTI 2.

[SwitchC] stp pathcost-standard legacy

[SwitchC] interface gigabitethernet 0/0/2

[SwitchC-GigabitEthernet0/0/2] stp instance 2 cost 20000

[SwitchC-GigabitEthernet0/0/2] quit

Step 5: Run the stp enable command in the system view to enable MSTP.


For more information about configurations and principles of MSTP, see the corresponding product documentation.

Step 1: Log in to Huawei enterprise technical support website:

Step 2: Select the product, for example, Switch > S5700.


Step 3: Select the corresponding product documentation from the Downloadable Product Documentation Package.


Step 4: See MSTP Configuration under Configuration > CLI-based Configuration Guide > Ethernet Switching Configuration Guide.


  • x
  • convention:

Created Jun 30, 2018 09:12:13

View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.
Information Protection Guide
Thanks for using Huawei Enterprise Support Community! We will help you learn how we collect, use, store and share your personal information and the rights you have in accordance with Privacy Policy and User Agreement.