第10章 交换

10.1 RSTP

图片[1]-第10章 交换-大赛人网
图10-1 RSTP基本配置网络拓扑

1.SW1配置RSTP

[SW1]stp mode rstp 
[SW1]stp root primary
[SW1]stp enable 

2.SW2配置RSTP

[SW2]stp mode rstp
[SW2]stp root secondary 
[SW2]stp enable

3.SW3配置RSTP

[SW3]stp mode rstp
[SW3]stp root secondary 
[SW3]stp enable

4.SW4配置RSTP

[SW4]stp mode rstp
[SW4]stp root secondary 
[SW4]stp enable

5.SW4查看STP信息

[SW4]display stp brief 
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/23       ROOT  FORWARDING      NONE
   0    GigabitEthernet0/0/24       ALTE  DISCARDING      NONE

6.修改SW4  G0/0/23的COST值,使 G0/0/23为DISCARDING状态

[SW4]interface GigabitEthernet 0/0/23
[SW4-GigabitEthernet0/0/23]stp cost 100000
SW4]display stp brief               
 MSTID  Port                        Role  STP State     Protection
   0    GigabitEthernet0/0/23       ALTE  DISCARDING      NONE
   0    GigabitEthernet0/0/24       ROOT  FORWARDING      NONE

[SW4]display stp interface GigabitEthernet 0/0/23
----[Port23(GigabitEthernet0/0/23)][DISCARDING]----
 Port Protocol       :Enabled
 Port Role           :Alternate Port
 Port Priority       :128
 Port Cost(Dot1T )   :Config=100000 / Active=100000
 Designated Bridge/Port   :4096.4c1f-cc63-7b40 / 128.23
 Port Edged          :Config=default / Active=disabled
 Point-to-point      :Config=auto / Active=true
 Transit Limit       :147 packets/hello-time
 Protection Type     :None                
 Port STP Mode       :RSTP                
 Port Protocol Type  :Config=auto / Active=dot1s
 BPDU Encapsulation  :Config=stp / Active=stp
 PortTimes           :Hello 2s MaxAge 20s FwDly 15s RemHop 0
 TC or TCN send      :1                   
 TC or TCN received  :2                   
 BPDU Sent           :3                   
          TCN: 0, Config: 0, RST: 3, MST: 0
 BPDU Received       :206                 
          TCN: 0, Config: 0, RST: 206, MST: 0
© 版权声明
THE END
喜欢就支持一下吧
点赞14 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容