首页/网络/网络设备配置速查/根桥保护:防止接入设备抢占根桥
ACL 与安全65 条

根桥保护:防止接入设备抢占根桥

接入层设备意外成为生成树根桥会导致流量绕行、性能骤降;根保护让收到更优 BPDU 的端口进入阻塞而非让位。

网络设备配置速查网络更新于 2026-10-12
场景保护核心/汇聚的根桥地位
适用三厂

华为 VRP

华为 VRP
interface GigabitEthernet0/0/1
 stp root-protection
display stp interface GigabitEthernet0/0/1

思科 IOS

思科 IOS
interface GigabitEthernet0/1
 spanning-tree guard root
show spanning-tree inconsistentports

H3C Comware

H3C Comware
interface GigabitEthernet1/0/1
 stp root-protection
display stp interface GigabitEthernet1/0/1
差异:思科命令是 spanning-tree guard root,置于面向下级的口;华为/H3C 为 stp root-protection。触发后日志会提示 ROOT-Protected,排查时先看这个关键词。

易错点

  • 在指向根桥的端口上误配根保护,会导致该端口被阻塞、网络分裂

数据来源与参考

  • Cisco IOS Root Guard 配置
  • 华为 VRP stp root-protection
  • H3C Comware stp root-protection

相关工具

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