How to start Spanning Tree Protocol(STP)
Spanning Tree Protocol is the protocol network used to prevent loops in network topology developed by Radia Perlman in 1985 and is defined in the IEEE 802.1D standard
How It Works
STP is work by creating logical tree-like structure the network with root bridge switches and bridges connected ends out a special message called a Bridge Protocol Data Unit (BPDU)
0-Switch>en
Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no spanning-tree ?
mode Spanning tree operating mode
portfast Spanning tree portfast options
vlan VLAN Switch Spanning Tree
Switch(config)#no spanning-tree vlan 1
Switch(config)#
Switch(config)#spanning-tree vlan 1
Switch(config)#do sh spanning-tree vlan 1
Switch#sh span
1-Switch>
Switch>
Switch>en
Switch#
Switch#conf
.Switch(config)#no spanning-tree ?
Switch(config)#no spanning-tree vlan 1
Switch(config)#
Switch(config)#spanning-tree vlan 1
Switch(config)#do sh spanning-tree vlan 1
Switch#sh span
2-Switch>
Switch>en
Switch#conf
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#no spanning-tree ?
mode Spanning tree operating mode
portfast Spanning tree portfast options
vlan VLAN Switch Spanning Tree
Switch(config)#no spanning-tree vlan 1
Switch(config)#
Switch(config)#spanning-tree vlan 1
Switch(config)#do sh spanning-tree vlan 1
Switch#sh span
Lab 2
Convert the non root brige to the root brige mathad one
Switch>en
Switch#conf
Switch(config)#spanning-tree ?
Switch(config)#spanning-tree vlan ?
WORD vlan range, example: 1,3-5,7,9-11
Switch(config)#spanning-tree vlan 1-4094 ?
Switch(config)#spanning-tree vlan 1-4094 root primary
Switch(config)#
Switch(config-if-range)#sh
Switch(config-if-range)#do sh span
Switch(config-if-range)#no sh
Switch>
Switch>en
Switch#conf
Switch(config)#do sh span
Switch(config)#
Switch(config)#span vlan 1-4094 priority ?
Switch(config)#span vlan 1-4094 priority 0
Switch(config)#
Switch(config)#do sh span
Portfasto on specification port confifration
Switch>
Switch>en
Switch#conf
Switch(config)#int f0/10
Switch(config-if)#spanning-tree portfast
3-Switch>
Switch>en
Switch#conf
Switch(config)#spanning-tree partfast default
Switch(config)#spanning-tree portfast default
Switch(config)#do sh run
Switch(config)#int r f0/2-3
Switch(config-if-range)#no spanning-tree portfast
