下面是基于端口权值的负载均衡配置过程
SwitchA(config)#interface e0/2 (进入端口2配置模式)
SwitchA(config-if)#spanning-tree vlan 10 port-priority 10
(将VLAN10的端口权值设为10)
SwitchA(config-if)#exit
SwitchA(config)#interface e0/3 (进入端口3配置模式)
SwitchA(config-if)#spanning-tree vlan 20 port-priority 10
(将VLAN20的端口权值设为10)
Switch1(config-if)#end
Switch1#copy running-config startup-config(保存配置文件)