华为交换机常见STP/RSTP操作

【华为交换机常见STP/RSTP操作】开启STP/RSTP
[HUAWEI] stp enable
[HUAWEI-GigabitEthernet0/0/1] stp enable
关闭STP/RSTP
[HUAWEI] undo stp enable
[HUAWEI-GigabitEthernet0/0/1] undo stp enable
配置根桥和备份根桥
[HUAWEI] stp root primary
[HUAWEI] stp root secondary
4.配置根保护
[HUAWEI-GigabitEthernet0/0/1] stp root-protection
配置边缘端口
[HUAWEI-GigabitEthernet0/0/1] stp edged-port enable
修改STP/RSTP的cost值
[HUAWEI-GigabitEthernet0/0/1] stp cost 20000
查看STP/RSTP状态
display stp brief
查看根桥信息
display stp bridge root
更多建站及源码交易信息请见 GoodMai

    推荐阅读