VPS服务器SW(config)#spanning-tree vlan 2启动生成树协议
SW(config)#spanning-tree vlaln 2 priority 4096修改优先级
SW(config)#spanning-tree vlan 2 root primary根网桥
另:学习到目前,思科STP有自动选举根交换机的机制???......
3台交换机,拓扑就不画了。只是注意下端口,用f0/1 - 3。交换机比较少,直接在三个交换机输入命令,创建vlan 2开始命令基本一样Switch>enSwitch#vlan dSwitch(vlan)#vlan 2Switch(vlan)#^ZSwitch#conf tSwitch(config)#int rSwitch(config)#int range f0/1 - 3Switch(config-if-range)#sw mode tSwitch(config-if-range)#no shutdown至此,vlan 2 在三台上设置好了,在SW1上设置vlan2 的根网桥SW1#conf terminalSW1(config)#spanning-tree vlan 2 root primarySW1(config)#^Z设置好了,查看SW1#show spanning-tree vlan 2VLAN0002Spanning tree enabled protocol ieeeRoot ID Priority 24578Address 0009.7C82.5992This bridge is the rootHello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 24578 (priority 24576 sys-id-ext 2)Address 0009.7C82.5992Hello Time 2 sec Max Age 20 sec Forward Delay 15 secAging Time 20Interface Role Sts Cost Prio.Nbr Type---------------- ---- --- --------- -------- --------------------------------Fa0/1 Desg FWD 19 128.1 P2pFa0/2 Desg FWD 19 128.2 P2p
购买使用一诺网络国外VPS,可以极大降低初创企业、中小企业以及个人开发者等用户群体的整体IT使用成本,无需亲自搭建基础设施、简化了运维和管理的日常工作量,使用户能够更专注于自身的业务发展和创新。国外VPS低至49元/月,购买链接:https://www.enuoidc.com/vpszq.html?typeid=3