VLAN与STP生成树的关系:
——IEEE的通用生成树(CST)
——Cisco的每VLAN生成树(PVST)
——Cisco的能兼容CST的PVST(PVST+)
————————————————————————————————————————————————————————————————
——————————————————————————————————————————————————————————————————
PVST按VLAN生成树的作用:
例子:
PVST配置命令:
启动生成树Switch(config)#spanning-tree vlan vlan-list
设置根网桥Switch(config)#spanning-tree vlan vlan-list root primary
修改网桥优先级Switch(config)#spanning-tree vlan vlan-list priority Bridge-priority
修改端口成本Switch(config-if)#spanning-tree vlan vlan-list cost cost
修改端口优先级Switch(config-if)#spanning-tree vlan vlan-list port-priority priority
配置上行速链路Switch(config)#spanning-tree uplinkfast
配置端口速链路Switch(config)#spanning-tree portfast
查看生成树饿配置Switch#show spanning-tree
查看某个VLAN的生成树详细信息Switch#show spanning-tree vlan vlan-id detail
本文介绍了VLAN与生成树协议(STP)的关系,并详细解释了Cisco专有的每VLAN生成树(PVST)的工作原理及其配置命令。包括如何启用PVST、设置根网桥、调整优先级等。
2025

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



