Ruijie Community

Title: How to configure Multiple Spanning Tree (MSTP) on Ruijie Switch? [Print this page]

Author: linyonghang1@ru    Time: 2023-8-14 15:13
Title: How to configure Multiple Spanning Tree (MSTP) on Ruijie Switch?
How to configure Multiple Spanning Tree (MSTP) on Ruijie Switch?

1.        Network requirements

There are 4 vlans on the Intranet. The root bridge of vlan10 and 20 is on core switch A, and the root bridge of vlan30 and vlan40 is on core switch B

2.        Topology



3.        Configure tips

Enable the spanning tree function first

Create different instances

Configure the priority for the instance

4.        Configure steps

Core switch A:

Ruijie>enable               

Ruijie#configure terminal      

Ruijie(config)#vlan range 10,20,30,40    //create vlan 10, 20, 30 and 40



Ruijie(config-vlan)#exit



Ruijie(config)#spanning-tree   //enable spanning tree, mst is by default

Ruijie(config)#spanning-tree mst configuration    //configure mst

Ruijie(config-mst)# instance 1 vlan 10, 20           //vlan 10 and 20 use instance1

Ruijie(config-mst)# instance 2 vlan 30, 40            //vlan 30 and 40 use instance2



Ruijie(config-mst)#exit

Ruijie(config)#spanning-tree mst 1 priority 4096   // instance 1 priority is 4096. The smaller, the higher priority  is selected to be root. 32768 by default



Ruijie(config)#interface gigabitEthernet 0/1

Ruijie(config-if-GigabitEthernet 0/1)#switchport mode trunk

Ruijie(config)#interface gigabitEthernet 0/2

Ruijie(config-if-GigabitEthernet 0/2)#switchport mode trunk



Ruijie(config)#end

Ruijie#write



Core switch B:

Ruijie>enable

Ruijie#configure terminal

Ruijie(config)#vlan range 10,20,30,40    //create vlan 10, 20, 30 and 40

Ruijie(config-vlan)#exit

Ruijie(config)#spanning-tree       //enable spanning tree, mst is by default

Ruijie(config)#spanning-tree mst configuration           //configure mst

Ruijie(config-mst)# instance 1 vlan 10, 20           //vlan 10 and 20 use instance1

Ruijie(config-mst)# instance 2 vlan 30, 40            //vlan 30 and 40 use instance2

Ruijie(config-mst)#exi

Ruijie(config)#spanning-tree mst 2 priority 4096   // instance 2 priority is 4096. The smaller, the higher priority  is selected to be root. 32768 by default.



Ruijie(config)#interface gigabitEthernet 0/1

Ruijie(config-if-GigabitEthernet 0/1)#switch mode trunk   

Ruijie(config)#interface gigabitEthernet 0/2

Ruijie(config-if-GigabitEthernet 0/2)#switch mode trunk   

Ruijie(config)#end

Ruijie#write


Access switch:

Ruijie>enable              

Ruijie#configure terminal     

Ruijie(config)#vlan range 10,20,30,40    //create vlan 10, 20, 30 and 40

Ruijie(config-vlan)#exit

Ruijie(config)#spanning-tree

Ruijie(config)#spanning-tree mst configuration

Ruijie(config-mst)# instance 1 vlan 10, 20

Ruijie(config-mst)# instance 2 vlan 30, 40

Ruijie(config-mst)#exit

Ruijie(config)#interface gigabitEthernet 0/1

Ruijie(config-if-GigabitEthernet 0/1)#switch mode trunk

Ruijie(config)#interface gigabitEthernet 0/2

Ruijie(config-if-GigabitEthernet 0/2)#switch mode trunk

Ruijie(config)#end

Ruijie#write


5.        Verification

Ruijie#show spanning-tree summary



Ruijie#show spanning-tree mst 1




Author: rikyfitriadi.pk    Time: 2023-8-28 17:10
what simulator did you use? kindly neet your help to send the link please. thank you in advance

Author: guominxiang@rui    Time: 2023-8-29 12:15
Riky Fitriadi replied at 2023-8-28 17:10
what simulator did you use? kindly neet your help to send the link please. thank you in advance

Please kindly check the document here: https://pan.ruijie.com.cn/share/377a01433fb8ea4d22d48fb331

Please kindly note we do not have an official simulation tool, the document is for practice purposes only and we do not guarantee to solve any issues encountered during installing or using this tool.






Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2