Redundant links are used to provide a backup path when one link goes down but a Redundant link can sometimes cause switching loops. The main purpose of Spanning Tree Protocol (STP) is to ensure that you do not create loops when you have redundant paths in your network. Show Spanning Tree Protocol (STP) –
Designated port – The port which sends the best BPDU i.e ports on the root bridge will be in a forwarding state.
(Port priority + Port number) – Port priority is by default 128 and port number is the switch interface number. Election procedure – Now according to the criteria, the root ports will be selected and then the port left will be in blocking mode. Example –
Here is a small topology with three switches switch A (mac address-0000.0ACA7.A603), switch B(0030.F222.2794), and switch C(000A.41D5.7937) with all having default priority (32768). I am adding vlan 160 to the network, and have successfully done so PROVIDED that I severed the link between switch 1 and switch 5, so interface TenGigabitEthernet1/0/1 description uplink c2960x-4 port Te 1/0/1 switchport trunk allowed vlan 2,12,110,160,170 switchport trunk native vlan 999 switchport mode trunk switchport nonegotiate ! interface TenGigabitEthernet1/0/2 description uplink c2960x-1 port Te 2/0/2 switchport trunk allowed vlan 2,12,110,170 switchport trunk native vlan 999 switchport mode trunk switchport nonegotiate ! Now, I read some things but I'm having a hard time discerning which command is allocating the root switch. For some reason, the readout for c2960x-3 is C2960X-3#show spanning-tree summary Switch is in pvst mode Root bridge for: VLAN0005, VLAN0010, VLAN0100, VLAN0147, VLAN0160 EtherChannel misconfig guard is enabled Extended system ID is enabled Portfast Default is disabled Portfast Edge BPDU Guard Default is disabled Portfast Edge BPDU Filter Default is disabled Loopguard Default is disabled PVST Simulation Default is enabled but inactive in pvst mode Bridge Assurance is enabled but inactive in pvst mode UplinkFast is disabled BackboneFast is disabled Configured Pathcost method used is short Name Blocking Listening Learning Forwarding STP Active ---------------------- -------- --------- -------- ---------- ---------- VLAN0002 0 0 0 23 23 VLAN0012 0 0 0 20 20 VLAN0110 0 0 0 20 20 After I severed vlan160 for switches 1 and 5, I got successful comms for vlan160 out of #3, and have since reestablished the vlan on the trunk and comms stayed up. If I have a large amount of these vlan160 connections coming into switch 1 instead of switch 3, should I allocate that as the root bridge? What determines which switch will be the root bridge?An election process determines which switch becomes the root bridge. Each switch has a Bridge ID (BID) that is made up of a priority value, an extended system ID, and the MAC address of the switch. All switches in the network take part in the election process.
How would a switch determine that another switch is now the root bridge?When adjacent switches receive a BPDU frame, they compare the root ID from the BPDU frame with the local root ID. If the root ID in the received BPDU is lower than the local root ID, the switch updates the local root ID and the ID in its BPDU messages. These messages indicate the new root bridge on the network.
How will switches find the best paths to the root bridge?Explanation: After the election of a root bridge has occurred, each switch will have to determine the best path to the root bridge from its location. The path is determined by summing the individual port costs along the path from each switch port to the root bridge.
|