search the web

Monday, February 8, 2016

Configuring Spanning Tree Protocol

Configuring Spanning Tree Protocol


show spanning-tree
!This command shows all the instances of STP running on this switch. It shows two portions, one showing the ROOTID which shows the information about the root switch showing its mac address, priority and many other things. The default priority is 32768. Now the stp adds the vlan id to the switch priotiry. and other thing it shows is the information about switch itself.

show spanning-tree
!shows all the instances of stp running- on this switch.

show spanning-tree vlan 1
!shows the stp for vlan 1

Now we configure WC_S1 as root
WC_S1
conf t
spanning-tree vlan 1,10,20 root primary
!now the switch becomes the root and it lowers the priority of the switch.

no spanning-tree vlan 1,10,20 root primary

Enabling PORTFAST on the switch
conf t
interface fa0/1 -20
switchport mode access
spanning-tree portfast
!on the all the ports portfast will be enabled and they will bypass the listening phase.

Enabling RAPID-STP on both S1 and s2
conf t

spanning-tree mode rapid-pvst
!we have to apply this command on both the switches.

for initial configuration of Router, switch or AP visit link below
initial configuration of Router, Switch or AP

No comments: