Configuration Guide MSTP Configuration
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
Ruijie(config-mst)# instance 1 vlan 2
%Warning:you must create vlans before configuring instance-vlan relationship
Ruijie(config-mst)# instance 2 vlan 3
%Warning:you must create vlans before configuring instance-vlan relationship
Ruijie(config-mst)# name Ruijie
Ruijie(config-mst)# revision 1
Ruijie(config-mst)# exit
Ruijie(config)# spanning-tree
Enable spanning-tree.
# Set the highest priority for Instance 2
Ruijie(config)# spanning-tree mst 2 priority 4096
# Enable BPDU Guard function globally and set the interface Fa 0/3 to Port
Fast-enabled port.
Ruijie(config)# spanning-tree portfast bpduguard default
Ruijie(config)# interface fastEthernet 0/3
Ruijie(config-if)#spanning-tree portfast
%Warning: portfast should only be enabled on ports connected to a single host.
Connecting hubs, Ruijiees, bridges to this interface when portfast is enabled,can
cause temporary loops.
Ruijie(config-if)# end
# View the spanning tree configurations
Ruijie# show spanning-tree
StpVersion : MSTP
SysStpStatus : ENABLED
MaxAge : 20