发布时间 : 星期日 文章STP生成树 七更新完毕开始阅读0a032784011ca300a7c39018
下游交换机除了接收Proposal消息以外的所以其他端口必须满足sync(同步)条件,才可以回复Agreement消息。 注:一个端口怎样才能满足sync条件?
1)该端口是edge-port(边缘端口,这种端口通常是连接终端设备,它的收敛时间为0) 2)该端口是阻塞的
show cdp neighbors
spanning-tree mode rapid-pvst spanning-tree link-type point-to-point
d)拓扑改变机制
STP:由发现拓扑改变的交换机产生TCN BPDU,沿着去往Root Bridge的方向,最终发送到Root Bridge.
原因:STP中,只有Root Bridge才能产生Configuration BPDU报文 RSTP:由发现拓扑改变的交换机直接泛洪这个消息到网络中。 原因:每个交换机可以自动产生/发送BPDU报文。
RSTP中,什么才算拓扑改变? 非边缘端口进入转发状态。 STP中,什么菜算拓扑改变?
端口进入blocking或forwarding状态
三、MSTP(Multi Spanning Tree Protocol) 1.作用
在网络中运行多个生成树的实例,从而实现流量的分担 将多个VLAN映射到一个生成树实例
基于RSTP开发的,在网络中运行多个生成树实例,从而实现流量的分担。 2.MSTP的配置
同一个区域(Region)中的交换机进行MSTP的交互
如何确定Region?由以下3个参数确定(Name/Revision number/VLAN关联表)
spanning-tree mode mst
spanning-tree mst configuration 进入配置模式 name 7
979 revision 1
instance 1 vlan 11-20 instance 2 vlan 21-30
show spanning-tree mst configuration show spanning-tree mst 1
spanning-tree mst 1 priority 4096 spanning-tree mst 2 priority 8192
show int trunk show cdp neighbors 归纳:
STP/PVST/PVST+/RSTP/PVRST/MSTP
思科交换机设备PVST(只能支持ISL封装的trunk)/PVST+(支持ISL/802.1Q封装的trunk)/PVRST/MSTP 华为交换机设备STP/RSTP/MSTP