邊緣端口:位於網絡邊緣的指定端口,邊緣端口既不接受配置BPDU報文,也不參與RSTP運算,可以有Disabled 狀態直接轉到Forwarding狀態,且不經歷時延,就像在端口上將STP禁用一樣。
stp edged-port enable 用來配置交換機的端口爲邊緣端口,針對某一具體的端口
RSTP 有3中狀態
Discarding: 端口不轉發也流量也不學習MAC地址
Learning:端口不轉發流量但學習MAC地址
Forwarding:端口 轉發客戶流量和學習MAC地址
RSTP
###在指定端口下執行
stp root-protection 命令 : 根保護功能僅在指定端口上生效,不能配置在邊緣端口或 配置了環路保護功能的端口上
##BPDU 保護,在系統視圖下執行
[SW3]stp bpdu-protection
##環路保護 ,在接口視圖下執行
stp loop-protection
###配置了 root 保護機制的 端口 不能再配置 loop 保護
[SW3-GigabitEthernet0/0/3]stp lo
[SW3-GigabitEthernet0/0/3]stp loop-protection
Error: Failed to enable the loop protection because the root protection is enabl
ed on the port.
[SW3-GigabitEthernet0/0/3]inter g 0/0/2
[SW3-GigabitEthernet0/0/2]stp lo
[SW3-GigabitEthernet0/0/2]stp loop-protection
[SW3-GigabitEthernet0/0/2]