Common STP
- 802.1D 只有1个STP Instance,不管多少个VLAN,意味着全部VLAN 都在使用同1个拓扑。不能实现LB
- 所有VLAN 拥有相同的转发路径——
PVST —— Per-Vlan STP
- 每个VLAN都可以有自己的Instance
- 同1个端口在不同的VLAN下充当不同角色
- 同1个Switch在不同VLAN下充当不同角色
- 可以根据实际需求对网络进行优化。但是又带来新的问题,大型网络,假如有4000个VLAN,就会有4000个Instance,配置和维护称为巨大的负担
MST —— Multiple STP
- 将拓扑相同的多个VLAN,放到1个生成树 Instance,从而减少 Instance 的数量
MST Region
- 跑MST的交换机组成1个Region,对外可以等同于1个大的Switch

MST Instance
- 把具有相同拓扑的VLAN放到1个STP
- 最多支持16个MSTI,其中0是保留 —— 如果不配置的话,所有VLAN都在MST0里面
- MST 使用的Path Cost 和 PVST 不同
MST Config
spanning-tree mode mst
spanning-tree mst configuration
name XXX
revision XXX
instance X vlan XX,XX
instance Y vlan YY,YY
spanning-tree mst X priority X
spanning-tree mst Y priority Y
show spanning-tree mst
show spanning-tree mst interface
MST Tunning
- 可以调整 Switch 的 Priority
- 可以调整 port-pority
- 可以调整 cost
MST Region Boundary
- 因为使用的BPDU格式不同,Region 内和外如何通信
- 需要开启 1种机制,叫PVST Simulation