SW1配置:
vlan batch 1 to 100
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 2 to 4094
interface GigabitEthernet0/0/2
port link-type trunk
port trunk allow-pass vlan 2 to 4094
stp mode mstp //修改生成树的模式为多实例生成树
[SW1]stp region-configuration
[SW1-mst-region]region-name KFC
[SW1-mst-region]revision-level 1
[SW1-mst-region]instance 1 vlan 1 to 50
[SW1-mst-region]instance 2 vlan 51 to 100
[SW1-mst-region]active region-configuration
//MSTP域的配置
1.域名
2.修订级别(用于识别不同的域)
3.实例和VLAN的映射(vlan的集合)
4.激活域的配置
5.复制和粘贴(保证一致性)
------------------------------------------------
MSTP解决的问题
1.流量分担
2.解决次优
-------------------------------------------------
stp instance 1 priority 0
stp instance 2 priority 4096
stp instance 1 priority 4096
stp instance 2 priority 0
//在两个交换机分别配置优先级互为主备