| 场景 | 双上联拓扑、STP 收敛调优 |
|---|---|
| 适用 | 二层聚合 + STP 环境 |
| 命令族 | stp cost(聚合口)/ spanning-tree cost(port-channel)/ stp cost(聚合口) |
华为 VRP
华为 VRP
[Huawei-Eth-Trunk1] stp cost 2000 ! 在聚合口上调整路径开销
<Huawei> display stp brief | include Eth-Trunk
[Huawei-Eth-Trunk1] stp edged-port ! 边缘端口按需(面向服务器)思科 IOS
思科 IOS
SW-A(config)# interface port-channel 1
SW-A(config-if)# spanning-tree cost 2000
SW-A# show spanning-tree interface port-channel 1
! 成员口不单独参与 STP 计算H3C Comware
H3C Comware
[H3C-Bridge-Aggregation1] stp cost 2000
<H3C> display stp brief
! 边缘端口:stp edged-port(面向服务器/终端)要点:① 成员口状态变化不必然引起 STP 收敛(除非全部成员失效)② 聚合口 stp cost 影响选路对比 ③ 双上联场景一般让聚合口承担转发、备用链路阻塞。