MSTP负载均衡
1、拓扑图:
2、配置思路
(1)核心层/汇聚层交换机配置
SWA的配置
①配置mstp
1)stp enable
2)Stp mode mstp
3)Stp regin-configuration //配置mstp域
a.Region-name gg //配置mstp域名,注意同一个域,相同域名
b.Instance 1 vlan 5 7 //划分vlan5和7到一个实例里
c.Instance 2 vlan 6 8
4)Stp instance 1 priority 4096 //配置组1优先级为4096,主根
5)Stp instance 2 priority 8192 //配置组2优先级为8192,候补
配置vlan(左边的三层交换机我全部把ip设为192.168.x.252)
除了vlan10,其他的都要配置ip地址
SWB的配置
②配置mstp
1)stp enable
2)Stp mode mstp
3)Stp regin-configuration //配置mstp域
a.Region-name gg //配置mstp域名,注意同一个域,相同域名
b.Instance 1 vlan 5 7 //划分vlan5和7到一个组里
c.Instance 2 vlan 6 8
4)Stp instance 1 priority 4096 //配置组1优先级为8192,候补
5)Stp instance 2 priority 8192 //配置组2优先级为4096,主根
③在与路由器连接的端口里关闭stp
Interface g0/0/7;stp disable //swa和swb都要这样配置
配置vlan(左边的三层交换机我全部把ip设为192.168.x.253)
除了vlan9