| 场景 | 接入端口保护触发后恢复 |
|---|---|
| 适用 | 全部交换机 |
| 命令族 | show errdisable / errdisable recovery / error-down auto-recovery |
华为 VRP
华为 VRP
<Huawei> display interface GigabitEthernet 0/0/1
! 状态显示 ERROR DOWN(bpdu-protection) 等具体原因
[Huawei] error-down auto-recovery cause bpdu-protection interval 30
! 恢复手动:shutdown + undo shutdown;先解决触发根因(如环路)思科 IOS
思科 IOS
SW-CORE-01# show interfaces status err-disabled
SW-CORE-01(config)# errdisable recovery cause bpduguard
SW-CORE-01(config)# errdisable recovery interval 300
SW-CORE-01(config)# errdisable recovery cause all ! 全部原因(谨慎)H3C Comware
H3C Comware
<H3C> display interface GigabitEthernet 1/0/1
! 被保护特性 Down 后通常手动恢复:
[H3C-GigabitEthernet1/0/1] shutdown
[H3C-GigabitEthernet1/0/1] undo shutdown思科恢复机制最完整(errdisable recovery cause + interval 可自动恢复);华为对应 error-down auto-recovery cause ... interval ...;H3C 多数场景手动 shutdown/undo shutdown。关键:先查保护触发原因(show interfaces status err-disabled 会显示原因)再恢复。