使用STP进行负载分担。让VLAN 3到6的流量经过中继链路1;让VLAN 8到10的流量经过中继链路2.如果其中任何一条中继链路出故障,另一条中继链路将起到承载流量的备份链路:
第一种方法,使用端口优先级来进行STP的负载分担。交换机A和B配置如下:
!
interface fastethernet0/1
spanning-tree vlan 8-10 port-priority 16
!
interface fastethernet0/2
spanning-tree vlan 3-6 port-priority 16
!
第二种方法,使用端口的路径开销来进行STP的负载分担。交换机A和B配置如下:
!
interface fastethernet0/1
spanning-tree vlan 3-6 cost 30
!
interface fastethernet0/2
spanning-tree vlan 8-10 port-priority 30
!
Monitoring and Maintaining STP
一些辅助性的命令:
1.只显示活动端口的STP状态信息:
Aiko#show spanning-tree active
2.显示STP的详细信息:
Aiko#show spanning-tree detail
3.显示特定端口的STP信息:
Aiko#show spanning-tree interface {interface}
4.显示端口状态摘要信息:
Aiko#show spanning-tree summary [totals]
转载于:https://blog.51cto.com/51you/710160
6621

被折叠的 条评论
为什么被折叠?



