Configure Rapid Spanning Tree Protocol on Cisco Switch

SW1#configure terminal
SW1(config)#spanning-tree mode rapid-pvst
SW1(config)#end
SW1#show spanning-tree vlan 4
look for spanning tree enabled protocol should say rstp