首页 > IT基础架构 > 服务器/存储 > 华为交换机常见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状态
<HUAWEI> display stp brief
查看根桥信息
<HUAWEI> display stp bridge root
更多建站及源码交易信息请见 GoodMai
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/70008684/viewspace-2839328/ ,如需转载,请注明出处,否则将追究法律责任。