0% found this document useful (0 votes)
43 views1 page

Spanning Tree Commands

The document provides commands for configuring spanning-tree settings on a switch, including changing port priority, port cost, and switch priority to influence root bridge selection. It details how to configure a switch as a root bridge, enable port fast, and adjust spanning-tree timers and modes. Additionally, it lists show commands for monitoring spanning-tree configurations.

Uploaded by

mohsin.risk93
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Spanning Tree Commands

The document provides commands for configuring spanning-tree settings on a switch, including changing port priority, port cost, and switch priority to influence root bridge selection. It details how to configure a switch as a root bridge, enable port fast, and adjust spanning-tree timers and modes. Additionally, it lists show commands for monitoring spanning-tree configurations.

Uploaded by

mohsin.risk93
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

changing port priority in spanning-tree

int fa0/1
spanning-tree vlan 1 port-priority 60
exit

how to change port cost:

int fa0/1
spanning-tree cost 4
exit

how to change the switch priority in spanning (by doing this you can manupulate the
decision to select root bridge)

spanning-tree vlan 10 priority 4096

how to configure a switch to become a root bridge

spanning-tree vlan 10 root primary

how to make another switch to become a root bridge in case of the existing root
bridge switch is failing

spanning-tree vlan 10 root secondary

how to change switch priority for mutliple vlans at the same time:

spanning-tree vlan 1,2,3-10 root primary

how to enable port fast on a port(interface level)

interf fa0/3
spanning-tree portfast
exit

how to enable port fast on all non-trunking ports from global level:

spanning-tree portfast default

how to change spanning-tree forward delay timer:

spanning-tree vlan 1 forward-delay 8

how to change spanning-tree mode to rapid-pvst

spanning-tree mode rapid-pvst

show commands:

show spanning-tree
show spanning-tree vlan 10
show inter trunk
show run

You might also like