生成树配置
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
实验目的:<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
通过配置交换机的优先级设置根网桥,来实现网络的负载分担,并配置骨干交换机之间的EtherChannel。
配置连接主机的速端口和上行速端口。
实验拓扑:
实验步骤
v配置SwA为VLAN 1和2的根网桥
SwA(config)#spanning-tree vlan 1 root primary
SwA(config)#spanning-tree vlan 2 root primary
v配置SwB在VLAN 3和4中优先级为4096
SwB(config)#spanning-tree vlan 3 priority 4096
SwB(config)#spanning-tree vlan 4 priority 4096
v查看配置结果
SwB# show spanning-tree
v配置交换机C上连接主机的端口为速端口
SwC(config)#interface range fastEthernet 0/1 - 20
SwC(config-if-range)#spanning-tree portfast
v在交换机C上配置上行速链路
SwC(config)#spanning-tree uplinkfast
转载于:https://blog.51cto.com/lanfox/29665