技术知识库

SW(config)#spanning-tree vlan 2启动生成树协议

SW(config)#spanning-tree vlaln 2 priority 4096修改优先级

SW(config)#spanning-tree vlan 2 root primary根网桥


附资料:https://www.landui.com/qing/636.html


另:学习到目前,思科STP有自动选举根交换机的机制???......


3台交换机,拓扑就不画了。只是注意下端口,用f0/1 - 3。
交换机比较少,直接在三个交换机输入命令,创建vlan 2
开始命令基本一样
Switch>en
Switch#vlan d
Switch(vlan)#vlan 2
Switch(vlan)#^Z
Switch#conf t
Switch(config)#int r
Switch(config)#int range f0/1 - 3
Switch(config-if-range)#sw mode t
Switch(config-if-range)#no shutdown

至此,vlan 2 在三台上设置好了,在SW1上设置vlan2 的根网桥
SW1#conf terminal
SW1(config)#spanning-tree vlan 2 root primary
SW1(config)#^Z
设置好了,查看
SW1#show spanning-tree vlan 2
VLAN0002
Spanning tree enabled protocol ieee
Root ID Priority 24578
Address 0009.7C82.5992
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec

Bridge ID Priority 24578 (priority 24576 sys-id-ext 2)
Address 0009.7C82.5992
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 20

Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.1 P2p
Fa0/2 Desg FWD 19 128.2 P2p

提交成功!非常感谢您的反馈,我们会继续努力做到更好!

这条文档是否有帮助解决问题?

非常抱歉未能帮助到您。为了给您提供更好的服务,我们很需要您进一步的反馈信息:

在文档使用中是否遇到以下问题: