Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

How to configure stp on Ruijie Switch? Reply

GTAC-Bancroft

Level 1

How to configure stp on Ruijie Switch?
4058 0 2023-8-15 13:09:36
Original
1. Networking topology:



2. Configuration points:

1)Enable the spanning tree function

2)Create different instances

3)Configure the priority for the instance

3. Configuration procedure:

Note: Before configuration, you are advised to run the Ruijie#show interface status command to check the interface name. The common interface names are FastEthernet (Gigabit), GigabitEthernet(Gigabit), and TenGigabitEthernet(Gigabit). The following configurations use Gigabit interfaces as an example.

Core switch A configuration:

Ruijie>enable //Enter privileged mode

Ruijie#configure terminal //Enter global configuration mode

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

Ruijie(config-vlan)#vlan 20

Ruijie(config-vlan)#vlan 30

Ruijie(config-vlan)#vlan 40

Ruijie(config-vlan)#exit

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

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

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

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

Ruijie(config-mst)#spanning-tree mst 1 priority 4096 //instance (instance) 1 has a priority of 4096, the smaller the priority the higher the priority, the default priority is 32768

Ruijie(config-mst)#exit

Ruijie(config)#interface FastEthernet 0/1

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

Ruijie(config)#interface FastEthernet 0/2

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

Core switch B configuration:

Ruijie>enable //enter privileged mode

Ruijie#configure terminal //Enter global configuration mode

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

Ruijie(config-vlan)#vlan 20

Ruijie(config-vlan)#vlan 30

Ruijie(config-vlan)#vlan 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)# spanning-tree mst 2 priority 4096

Ruijie(configmst)#exit

Ruijie(config)#interface FastEthernet 0/1

Ruijie(config-if-FastEthernet 0/1)#switch mode trunk //configure the first 100-gigabit interface of the switch as trunk

Ruijie(config)#interface FastEthernet 0/2

Ruijie(config-if-FastEthernet 0/2)#switch mode trunk //Configure the second 100-gigabit interface of the switch as trunk

Accessing the switch configuration:

Ruijie>enable

Ruijie#configure terminal

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

Ruijie(config-vlan)#vlan 20

Ruijie(config-vlan)#vlan 30

Ruijie(config-vlan)#vlan 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 FastEthernet 0/1

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

Ruijie(config)#interface FastEthernet 0/2

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

Save the configuration

Ruijie(config)#end

Ruijie#write //Confirm the correct configuration and save the configuration

4. Configuration verification:

1)Ruijie#show spanning-tree summary

Spanning tree enabled protocol mstp

MST 0 vlans map : 1-9, 11-19, 21-29, 31-39, 41-4094   

  Root ID    Priority    32768                             

             Address     001a.a976.9d0a            

             this bridge is root                     

             Hello Time   2 sec  Forward Delay 15 sec  Max Age 20 sec   

  Bridge ID  Priority    32768                                    

             Address     001a.a979.bc44

             Hello Time   2 sec  Forward Delay 15 sec  Max Age 20 sec

Interface        Role           Sts          Cost        Prio              Type     OperEdge

---------------- ----              ---       ----------   --------             -----      ---------------

Fa0/24           Root          FWD       200000     128               P2p          False         

Fa0/10            Altn           BLK        200000      128              P2p           False

MST 1 vlans map : 10, 20

  Region Root Priority   4096

             Address     001a.a979.bc44

             This bridge is region root

  Bridge ID  Priority    4096

             Address     001a.a979.bc44


Interface        Role Sts    Cost       Prio     Type  OperEdge

--------------- ---- --- ---------- -------- ----- ---------------

Fa0/24           Desg FWD 200000     128      P2p   False         

Fa0/10           Desg FWD 200000     128      P2p   False         

MST 2 vlans map : 30, 40

  Region Root Priority   4096

             Address     001a.a979.b880

             This bridge is region root

  Bridge ID  Priority    32768

             Address     001a.a979.bc44

Interface        Role Sts Cost       Prio     Type  OperEdge

---------------- ---- --- ---------- -------- ----- ---------------

Fa0/24           Altn BLK 200000     128      P2p   False         

Fa0/10           Root FWD 200000     128      P2p   False      

2)Ruijie#show spanning-tree mst 1

MST 1 vlans mapped : 10, 20

BridgeAddr : 001a.a979.bc44

Priority: 4096

TimeSinceTopologyChange : 0d:0h:0m:56s

TopologyChanges : 9

DesignatedRoot : 1001.001a.a979.bc44

RootCost : 0

RootPort : 0

RG-S5300-48GT4XS-E

Configuration Switch
There are no replies.
Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd