开启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状态
更多建站及源码交易信息请见 好买网 GoodMai