STP协议及其配置(二),共两部分
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