快速生成树概述
快速生成树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