首页 > 其他分享 >MSTP

MSTP

时间:2023-05-03 22:38:37浏览次数:40  
标签:MSTP region GigabitEthernet0 TC MSTI FORWARDING Port

概念
MSTP: multiple spanning tree protocol
MSTP兼容RSTP和STP,既可以快速收敛,又提供了数据转发的多条冗余链路;数据转发过程中实现vlan数据的
负载均衡
MST 域
Multiple spanning tree region: 由交换网络中多台网络设备及之间的网段构成
MSTI
MST域内可以生成多颗生成树,每颗生成树都称为一个MSTI
每个MSTI 都是相互独立的,且每个MSTI的计算过程和RSTP计算过程是相同的
一个MSTI可以有多个VLAN
一个VLAN只能存在于一个MSTI
每个MSTI都有一个唯一的MSTID
交换机默认MSTI
[SW1]display stp region-configuration 
 Oper configuration
   Format selector    :0             
   Region name        :4c1fcc0928c7             
   Revision level     :0

   Instance   VLANs Mapped
      0       1 to 4094
[SW1] User interface con0 is available
配置方法
[SW1]stp reg	
[SW1]stp region-configuration ?
  <cr>  

[SW1]stp region-configuration   #### 进入配置窗口
[SW1-mst-region]region-name aa  #### 配置域名
[SW1-mst-region]revision-level 1  #### 配置修订号; 域名+修订号,定义一个域
[SW1-mst-region]instance 1 vlan 10 20  #### 实例1 关联 10 20
[SW1-mst-region]instance 2 vlan 30 40  #### 实例2 关联 30 40
[SW1-mst-region]display this           #### 未激活,无法查看配置
#
return
[SW1-mst-region]active region-configuration ?
  <cr>  

[SW1-mst-region]active region-configuration  #### 配置指令激活
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-mst-region]display  this  #### 激活后方可查看配置
#
stp region-configuration
 region-name aa
 revision-level 1
 instance 1 vlan 10 20
 instance 2 vlan 30 40
 active region-configuration
#
return
[SW1-mst-region]
查看某一实例指令
[SW1-mst-region]display stp instance 1
-------[MSTI 1 Global Info]-------
MSTI Bridge ID      :32768.4c1f-cc09-28c7
MSTI RegRoot/IRPC   :32768.4c1f-cc09-28c7 / 0
MSTI RootPortId     :0.0
Master Bridge       :32768.4c1f-cc09-28c7
Cost to Master      :0
TC received         :1
TC count per hello  :0
Time since last TC  :0 days 0h:0m:55s
Number of TC        :4
Last TC occurred    :GigabitEthernet0/0/2
 ----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc09-28c7 / 128.1
 Port Times          :RemHops 20
 TC or TCN send      :7
 TC or TCN received  :0
 ----[Port2(GigabitEthernet0/0/2)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc09-28c7 / 128.2
 Port Times          :RemHops 20
 TC or TCN send      :1
 TC or TCN received  :1
 ----[Port3(GigabitEthernet0/0/3)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc09-28c7 / 128.3
 Port Times          :RemHops 20
 TC or TCN send      :0
 TC or TCN received  :0
 ----[Port4(GigabitEthernet0/0/4)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :32768.4c1f-cc09-28c7 / 128.4
 Port Times          :RemHops 20
 TC or TCN send      :0
 TC or TCN received  :0
查看域配置信息
[SW1]display stp region-configuration 
 Oper configuration
   Format selector    :0             
   Region name        :aa             
   Revision level     :1

   Instance   VLANs Mapped
      0       1 to 9, 11 to 19, 21 to 29, 31 to 39, 41 to 4094
      1       10, 20
      2       30, 40
站在instance 1角度,配置根桥
[SW2]stp priority ?
  INTEGER<0-61440>  Bridge priority, in steps of 4096

[SW2]stp instance 1 ?
  priority  Specify bridge priority
  root      Specify root switch

[SW2]stp instance 1 ro	
[SW2]stp instance 1 root ?
  primary    Primary root switch
  secondary  Secondary root switch

[SW2]stp instance 1 root primary
站在instance1角度,配置secondary
[SW3]stp instance 1 root secondary
查看instance1实例根桥配置
[SW2]display stp instance 1
-------[MSTI 1 Global Info]-------
MSTI Bridge ID      :0.4c1f-ccb4-7d02
MSTI RegRoot/IRPC   :0.4c1f-ccb4-7d02 / 0
MSTI RootPortId     :0.0
MSTI Root Type      :Primary root
Master Bridge       :32768.4c1f-cc09-28c7
Cost to Master      :20000
TC received         :3
TC count per hello  :0
Time since last TC  :0 days 0h:10m:22s
Number of TC        :4
Last TC occurred    :GigabitEthernet0/0/2
 ----[Port2(GigabitEthernet0/0/2)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :0.4c1f-ccb4-7d02 / 128.2
 Port Times          :RemHops 20
 TC or TCN send      :2
 TC or TCN received  :3
站在instance2角度,配置根桥
[SW3]stp instance 2 root primary
站在instance2角度,配置secondary
[SW2]stp instance 2 root secondary
查看instance2实例根桥配置
[SW3]display stp instance 2
-------[MSTI 2 Global Info]-------
MSTI Bridge ID      :0.4c1f-cc96-578d
MSTI RegRoot/IRPC   :0.4c1f-cc96-578d / 0
MSTI RootPortId     :0.0
MSTI Root Type      :Primary root
Master Bridge       :32768.4c1f-cc09-28c7
Cost to Master      :20000
TC received         :2
TC count per hello  :0
Time since last TC  :0 days 0h:13m:1s
Number of TC        :4
Last TC occurred    :GigabitEthernet0/0/1
 ----[Port1(GigabitEthernet0/0/1)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :0.4c1f-cc96-578d / 128.1
 Port Times          :RemHops 20
 TC or TCN send      :1
 TC or TCN received  :2
 ----[Port2(GigabitEthernet0/0/2)][FORWARDING]----
 Port Role           :Designated Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=auto / Active=20000
 Designated Bridge/Port   :0.4c1f-cc96-578d / 128.2
 Port Times          :RemHops 20
 TC or TCN send      :3
 TC or TCN received  :0
站在接入层交换机,查看不同实例接口阻塞状态
[SW1]display stp brief
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/1        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/2        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/4        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/5        DESI  FORWARDING      NONE
   0    GigabitEthernet0/0/6        DESI  FORWARDING      NONE
   1    GigabitEthernet0/0/1        ROOT  FORWARDING      NONE
   1    GigabitEthernet0/0/2        ALTE  DISCARDING      NONE
   1    GigabitEthernet0/0/3        DESI  FORWARDING      NONE
   1    GigabitEthernet0/0/4        DESI  FORWARDING      NONE
   2    GigabitEthernet0/0/1        ALTE  DISCARDING      NONE
   2    GigabitEthernet0/0/2        ROOT  FORWARDING      NONE
   2    GigabitEthernet0/0/5        DESI  FORWARDING      NONE
   2    GigabitEthernet0/0/6        DESI  FORWARDING      NONE


标签:MSTP,region,GigabitEthernet0,TC,MSTI,FORWARDING,Port
From: https://blog.51cto.com/u_11726705/6241513

相关文章

  • MSTP-多实例生成树
    RSTP与STP的缺点同一局域网内所有的vlan共享一个生成树,无法在vlan间实现数据流量的负载均衡;链路利用率低,被阻塞的冗余链路不承载任何流量,造成了带宽的浪费,还可能造成部分vlan报文无法转发。MSTP:MSTP兼容STP和RSTP,既可以快速收敛,又能使不同VLAN的流量沿各自的路径转发,从而为冗......
  • STP/RSTP/MSTP(生成树协议)
    STP(生成树协议)是运行在交换机上的二层破环协议,环路会导致广播风暴、MAC地址表震荡等后果,STP的主要目的就是防止二层网络中环路的产生。一、STP工作原理选举三要素:(桥ID、端口ID、开销)桥ID=优先级(值越小优先级越大越优,默认为32768)+MAC(值越小越优)端口ID=端口优先级(默认128,范围0-255,......
  • Huawei VRRP+MSTP组网实验-ensp
    一、基本环境IP地址规划:互联网公网IP地址:Router:121.1.1.0/30内网互联地址:Leaf1:10.0.0.0/30Leaf2:10.0.1.0/30内网vlan网关:vlan100:192.168.100.124vlan200:192.168.200.124二、拓扑结构三、实验配置出口网关ISP网络配置[ISP]interfaceGigabitEthernet0/0/0......
  • vrrp+mstp+osfp经典部署案例
    LSW1和LSW2和LSW3和LSW4上面启用vrrp+mstp组网:vlan10全走LSW1出再走AR2到外网,vlan20全走LSW2出再走AR3到外网配置注意:mstp实例的根桥在哪,vrrp的主设备就是谁ar2和ar3......
  • mstp专线的特点
    MSTP专线是采用Multi-SpeedTrafficPrecision(多速度路径优先)技术的专用通信线路。Mstp专线的特点是:(1)在相同条件下,传输距离较其他线路长,可达几十公里甚至上百公里。由于采......
  • mstp专线是什么意思?
    MSTP继承了SDH刚性管道的传统优势,例如物理隔离,低时延,严格QoS保证等等,并在此基础上结合ATM、IP数据处理技术,使专线服务的种类更加丰富。2000年初MSTP技术问世后,在安全性、可......
  • MSTP报文
        ......
  • MSTP端口角色和端口状态
        ......
  • mstp拓扑计算
           ......
  • MSTP配置
    全网所有交换机都要配置如下命令,包括接入,汇聚交换机:stpregion-configuration   region-nameHuawei    revision-level12    instance10vlan10......