首页/网络/网络设备配置速查/STP 开销标准(dot1d-1998 与 dot1t 长整型)
VLAN 与二层交换60 条

STP 开销标准(dot1d-1998 与 dot1t 长整型)

同一条千兆链路的开销:旧标准 4、新标准 20000;两端标准不一致时“谁该阻塞”算不出预期结果,跨厂组网必须显式统一。

网络设备配置速查网络更新于 2026-10-12
场景跨厂互通、cost 设计前核对
适用全部交换机
命令族stp pathcost-standard / spanning-tree pathcost method / stp pathcost-standard

常见链路开销对照

链路dot1d-1998(short)dot1t(long)
100M19200000
1G420000
10G22000

华为 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 cost

H3C Comware

H3C Comware
[H3C] stp pathcost-standard dot1t
<H3C> display stp interface GigabitEthernet1/0/1 | include Cost
统一原则:新网一律 dot1t/long;与老设备互通时确认对方能力再定。改标准会全网重算拓扑,属于变更动作,需窗口操作并观察收敛。

易错点

  • 照抄“1G=4”的经典口诀:实际网络跑 dot1t,算路全歪
  • 仅一端改标准:局部重算,阻塞口与设计不符

数据来源与参考

  • 华为 stp pathcost-standard
  • Cisco spanning-tree pathcost method
  • H3C stp pathcost-standard

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌