問題描述
接口配置stp disable和stp edged-port enable口有何區別?什么場景下必須配置stp edged-port enable?
解決方案
1、Q:接口配置stp disable和stp edged-port enable口有何區別?
A:stp disable禁用STP/RSTP/MSTP功能,如果在鏈接客戶端的接口上配置了此命令,這個接口禁用STP/RSTP/MSTP功能,即不參與生成樹計算也不轉發BPDU報文
stp edged-port enable 配置的接口不參與生成樹計算,即可以轉發BPDU也可以接收BPDU。
A:stp disable禁用STP/RSTP/MSTP功能,如果在鏈接客戶端的接口上配置了此命令,這個接口禁用STP/RSTP/MSTP功能,即不參與生成樹計算也不轉發BPDU報文
stp edged-port enable 配置的接口不參與生成樹計算,即可以轉發BPDU也可以接收BPDU。
---沒有配置BPDU保護的場景中如果收到BPDU后會從邊緣端口變成非邊緣端口並參與生成樹計算,導致網絡故障;
---配置BPDU保護功能后,如果邊緣端口收到了BPDU,交換機將關閉這些端口,同時通知網管系統,被關閉的端口只能由網絡管理人員手動恢復(可以配置error-down auto-recovery定時恢復down狀態端口)。
2、Q:什么場景下必須配置stp edged-port enable而不能配置stp disable?
2、Q:什么場景下必須配置stp edged-port enable而不能配置stp disable?
A:設備不支持其他類型的物理環路檢測並去除環路的功能,如LoopbackDetectuon功能,如圖場景
此時需要同時使用stp edged-port enable和stp bpdu-protection達到防環的效果;如果此時只是配置stp disable,環路依然存在導致網絡故障。

此時需要同時使用stp edged-port enable和stp bpdu-protection達到防環的效果;如果此時只是配置stp disable,環路依然存在導致網絡故障。