快速生成樹概述
快速生成樹Rapid Spanning tree protocol,RSTP
IEEE 802.1w
RSTP端口角色
根端口、指定端口和阻塞端口
替代端口、備用端口
RSTP端口狀態
丟棄、學習、轉發
RSTP收斂
邊緣端口、鏈路類型
快速生成樹配置
啓用RPVST+
Switch(config)#spanning-tree mode rapid-pvst
配置邊緣端口
Switch(config-if)#spanning-tree portfast
配置點到點鏈路
Switch(config-if)#spanning-tree link-type point-to-point
Switch#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol rstp 啓用了快速生成樹
Root ID Priority 32769
Address 001f.caff.1000
Cost 19
Port 11 (FastEthernet0/9)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 0021.1ba5.6980
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/2 Desg FWD 19 128.4 P2p 端口類型爲P2P
Fa0/9 Root FWD 19 128.11 P2p