CCNA-25、RSTP

RSTP (802.1W)

根端口:非根网桥去选举
1、COST  100M 19  10M 100
2、send B-ID
3、SEND PORT-ID(端口的优先级+接口ID)
   spanning-tree vlan 1 port-priority 128
选举指定接口
根桥上的接口都是指定接口(基于链路)
比较该接口到达根桥的COST
比较B-ID

Rapid Spanning Tree Protocol(862.1w)

RSTP
802.1W相对于先前的802.1D生成树来说,在网络拓扑发生变化的时候提供更快的收敛速度,
RSTP中还集成了类似于uplink和backbonefast属性.

RSTP它把Broking接口变为(替代接口和备份接口)
RSTP Port States
RSTP 端口状态

在STP种与设备连接的接口是Port Fast,在RSTP中也有一类类似的Edge Ports接口

配置命令spanning-tree portfast

Functions similarly to PortFast(思科).
Configured by issuing the spanning-tree portfast command(思科)
When a edge port receives a BPDu,it generates a TCN.
switchport mode access模式下
*Full-duplex---point-to-point
*Half-duplex---shared
*通过接口命令修改其默认的链路类型spanning-tree link-type ?

Switch(config-if)#spanning-tree link-type ?
  point-to-point  Consider the interface as point-to-point
  shared          Consider the interface as shared

Switch(config-if)#spanning-tree link-type 

PVRST Implementation Commands

-Configuring
spanning-tree mode rapid-pvst    #全局模式下
-Verifying    #查验
show spanning-tree vlan 10
-Debugging
debug spanning-tree
Switch#show spanning-tree vlan 10

VLAN0010
  Spanning tree enabled protocol rstp
  Root ID    Priority    32778
             Address     5064.1700.ba00
             This bridge is the root
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

  Bridge ID  Priority    32778  (priority 32768 sys-id-ext 10)
             Address     5064.1700.ba00
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec
             Aging Time  300 sec

Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Gi0/1               Desg BLK 4         128.2    P2p 

Switch#
STP  ----所有VAN 1棵生成树,.理论知识,不存在
RSTP ----所有TLAN1棵生成树+快速收敛
PVST ----每个LAN1棵生成树
rapid-pvst---每个江A的1棵生成树+快速收敛


MSTP结合了STP+PVST+RSTP的优点
多个VLAN 1棵生成树
100个VLAN
1-50实例1      每个实例就是一个生成树
51-100实例2
快速收敛
CCNP

MSTP一定要 instance 0 要设置成根桥

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • STP 的来源 在网络规划与整体设计的时候,为了避免单点故障的情况发生,我们会尽量的设置冗余的网络链路。而所谓的单...
    Jachin111阅读 5,117评论 0 2
  • RSTP(rapid spanning Tree Protocol ),即快速生成树协议,最早在IEEE 802....
    博客用户阅读 3,251评论 0 0
  • 趁着国庆赶紧总结一下对数通这一块的复盘。 STP 生成树协议(Spanning Tree Protocol,STP...
    汪洪正阅读 3,919评论 0 1
  • 为了提高网络可靠性,交换机网络中通常会使用冗余链路,冗余链路会给交换机带来环路风险,并导致广播风暴以及MAC地址表...
    酱紫冻阅读 21,345评论 2 18
  • STP 的弊端 网络收敛速度慢:BPDU 的 Max Age 值是 20 秒,接口从侦听到学习状态和从学习到转发状...
    赵客缦胡缨v吴钩霜雪明阅读 6,394评论 0 5