RSTP = 802.1w
注意要点:
- 快速收敛是基于交换机相关进程同步
开启命令:
- spanning tree mode mst
- spanning tree mode rapid-pvst
- 同步进程只发生在p2p & non-edge 端口上 (p2p意味着full duplex,non-edge要有收bpdu,edge port上要配置portfast命令)
注:如果在edge端口没有配置portfast且端口是full duplex,当主机收到Rapid STP proposal时不会回复agree,这样该端口就会自动回降到normal STP 或者PVST。我们就收不到快速收敛的效果了。在mst中Rapid STP默认开启,但是如果不在edge port上配置portfast,一样要通过正常的STP进程。
- spanning-tree link-type 【point-to-point | shared】
- spanning-tree portfast
- RSTP BPDU和STP的BPDU可以同时存在 (RSTP的BPDU是v2)
- RSTP里用802.1d的BPDU向下兼容(在不支持RSTP设备上run STP)
- RSTP里每个交换机都向邻居发送BPDU包,间隔就是Hello interval (默认2s)而STP里switch要等待根桥的BPDU然后再转发
- R