用思科GNS3配置多生成树(MSTP)

2025-05-01 00:54:40
推荐回答(1个)
回答1:

首先你得理解下mstp的概念。。。
IEEE的802.1Q不仅定义了Trunk,还定义了CST(Common Spanning Tree)CST缺点:所有的Vlan都是按照同一个STP来工作的。优点:开销小。
MST(对CST和PVST的折衷方案)
1.MST对vlan分组(Instance)
2.每个分组可以有独立的STP,实现L2负载分担。
Sw1(config)#spanning-tree mode mst (启用MST)
Sw1(config)#spanning-tree mst configuration
Sw1(config-mst)#instance 1 vlan 1-5 (VLAN1-5共享一个)
Sw1(config-mst)#instance 2 vlan 6-10(VLAN6-10共享一个STP)
Sw1(config)#spanning-tree mst 1 priority 4096 修改本交换机在这一大堆VLAN中的优先级
Sw1(config-if)#spanning-tree mst 1 cost 19 修改本接口在这一组中的开销
Sw1#show spanning-tree mst

Sw1#show spanning-tree mst configuration