Configuration Guide MSTP Configuration
Topology
Configuration Steps
1) Configuring Switch A
# Set interface Gi0/1 and Gi 0/2 as Trunk port and create VLAN 2 and VLAN 3
Ruijie# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# exit
Ruijie(config)# interface gigabitEthernet 0/2
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# exit
Ruijie(config)# vlan 2
Ruijie(config-vlan)# exit
Ruijie(config)# vlan 3
Ruijie(config-vlan)# exit
# Set the spanning tree to MSTP mode, VLAN 2-Instance 1 and VLAN 3-Instance 2
mapping, and set the MST configuration name to Ruijie, MST Revision Number to 1.
View the MST configurations and enable the spanning tree protocol.
Ruijie(config)# spanning-tree mode mstp
Ruijie(config)# spanning-tree mst configuration