Experiment of Basic Configuration RSTP

An upgraded version of STP RSTP

 

 lab environment

 

 

Experimental topology

 

 Addressing experiment

 

 Experimental Procedure

1. Basic Configuration
configurations on PC

 

 

 

 I interlinked test

 

 


Configuring RSTP basic functions
are used to change the spanning tree stp mode rstp command mode on S1-S4 (MSTP opened because the default Huawei switches)

 

 The display on the view switches S1-S4 stp position

 S1

 

 

 



 S2 

 

 



S3

 

 



 S4

 

 CIST Bridge is switch their ID, CIST Root is the root switch ID two, compared with the same root switch S4 is so difficult to draw the current root switch.
However, according to demand, the network administrator needs to set the primary distribution layer switch S2 to the switch S1 is the root root switch.
So the command input S1 stp root primary view and then use the display stp,
stp root primary command modifies the priority switches in switch ID, the default priority of 0 to 32768, the ID switch S1 becomes minimum, That is the root switch

 

 In the S2 input command and then display stp stp root secondary command to query the
stp root secondary command modifies the priority of the switch ID of the switch, the default was changed to 32768 4096, becomes the second smallest, that is, once the root switch.

 

 

input the command

dispaly stp brief look at each port role and status of the switch.
S1

 

 


S2

 

 


S3

 

 


S4

 

 If you cut off the root port S2, S2 will choose another port to reach the root switch is set to the root port,
0/01 port closed in S2 of GE, while others view the S2 port role and state changes.

 

 
GE 0/0/2 can be observed or designated port role, but will find the port becomes the root port role Discarding state to use the command query again, and the forwarding state

 

 

 观察结束之后恢复端口使用undo shutdown命令。可以观察到

GE0/0/2端口会经历Discarding状态回到Forwarding状态。


3.配置边缘端口

下面我们配置边缘端口(生成树的计算主要发生在交换机互连的链路之上,而连接PC的端口没必要参加生成树的计算,所以我们将pc记得接口配置为边缘接口)

 作为对比,我们将S4的E0/0/1配置为边缘端口之前,先把端口关闭再开启查看状态

 

 

 

 

经历了DISCARDING-LEARNING-FORWARDING三个状态的变化,所以大概需要30s再能进入转发状态。
如果配置为边缘端口,则无需等待。
stp edged-port enable 配置为边缘端口再关闭开启观察端口状态,可以发现明线提高了速度。

 

 

4.查看备份端口状态
可以看到S3 E0/0/3是指定端口,E0/0/4为备份端口,两个接口连接同一台Hub上,当3接口关闭,4接口会成为新的指定端口

 

 可以观察到S3指定端口关闭后,E0/0/4接口角色发生变化,Discarding、Learning最终到Forwarding状态

 

 同理也可以在S4上关闭根端口E0/02接口E0/0/3会立即替代2号端口成为新的根端口。
再重新启用2号端口又恢复原样。

Guess you like

Origin www.cnblogs.com/c1047509362/p/11986278.html