| 场景 | 跨厂互通、cost 设计前核对 |
|---|---|
| 适用 | 全部交换机 |
| 命令族 | stp pathcost-standard / spanning-tree pathcost method / stp pathcost-standard |
常见链路开销对照
| 链路 | dot1d-1998(short) | dot1t(long) |
|---|---|---|
| 100M | 19 | 200000 |
| 1G | 4 | 20000 |
| 10G | 2 | 2000 |
华为 VRP
华为 VRP
[Huawei] stp pathcost-standard dot1t ! 或 dot1d-1998;默认与版本有关,先确认
<Huawei> display stp interface GigabitEthernet0/0/1 | include Cost
! 1G 口显示 20000 = dot1t;显示 4 = dot1d-1998思科 IOS
思科 IOS
SW-A(config)# spanning-tree pathcost method long ! long=dot1t;short=dot1d-1998
SW-A# show spanning-tree interface Gi1/0/1 | include costH3C Comware
H3C Comware
[H3C] stp pathcost-standard dot1t
<H3C> display stp interface GigabitEthernet1/0/1 | include Cost统一原则:新网一律 dot1t/long;与老设备互通时确认对方能力再定。改标准会全网重算拓扑,属于变更动作,需窗口操作并观察收敛。