STP协议实验拓扑
-
可按照上图拓扑搭建网络以便实验。
-
在交换机上启用STP(华为交换机默认启用的MSTP),将交换机的STP模式更改为普通生成树STP。在S1,2,3,4上同样操作。默认等待30s生成树重新计算时间(15s forword delay ,15s learing)
-
display stp 查看stp生成树的协议。
-
display stp brief 查看摘要信息
-
可以通过优先级配置根交换机 默认优先级32768
stp priority 0 -
也可以通过stp root primary配置主根交换机
-
通过stp root secondary配置备份根交换机
-
display stp interface Ethernet0/0/2查看交换机的接口开销值
-
stp cost 2000 修改开销值,影响端口选举