Here we used two switch taking an example so as to illustrate how to excute RSTP configuration.The specific steps as following:
The first step,let's configure switch A
SwitchA#vlan database
SwitchA#vlan 10 name pcs
SwitchA(config-vlan)#exit
SwitchA(config)#int fa0/1
SwitchA(config-if)#switchport access vlan 10
SwitchA(config-if)#exit
SwitchA(config)#int range fa0/ 1-4
SwitchA(config-if-range)#switchport mode trunk
The second step to configure switch B
SwitchB#con t
SwitchB#vlan database
SwitchB(config)#vlan 10 name pcs
SwitchB(config-vlan)#exit
SwitchB(config)#int fa0/1
SwitchB(config-if)#switch access vlan 10
SwitchB(config-if)#exit
SwitchB(config)#int range fa 0/ 1-4
Switch(config-if-range)#switch mode trunk
The third step is to configure step
SwitchA#conf ter
SwitchA(config)#spannig-tree
SwitchA(config)#spannig-tree mode rstp
SwitchB#confter
SwitchB(config)#spannig-tree
SwitchB(config)#spannig-tree mode rstp
Finally,let's set up the priority on root switch
SwitchA(config)#spannig-tree priority 4096
Now,everything is ok. We can use show spanning-tree command to verify all configurations