Spanning Tree Flashcards
How is the Switch’s Bridge ID generated?
Switch’s MAC Address + the Bridge Priority
Bridge Priority from 0 - 65535
Priority defaults to 32768
In the case of a spanning tree Bridge Priority tie, which will be the Root Switch (Root Bridge)?
The one with the lowest MAC address.
If a switch has multiple equal cost paths towards the Root Switch via multiple devices, how will it select the Root Port?
The Neighbour with the lowest Bridge ID (Switch Priority + MAC address)
If a switch has multiple equal cost paths towards the Root Switch via the same device, i.e. multiple links between two switches, how will it select the Root Port?
Select the path with the lowest port priority on the other switch.
If priority tie, he lowest port number on the other switch wins.
What are Root Ports in STP?
Ports with the lowest cost path back to the Root Switch.
- There will only be one root port (interface) per switch that is not the Root Switch.
What is a STP designated port?
The best inbound ports to use to get to the Root Bridge on each network segment (based on cost).
- In case of a cost tie, the port on the device with the lowest Bridge ID wins.
- All Layer 2 network segments will have 1 designated port.
- All ports on the Root Bridge are designated ports.
- Designated ports will always be ports that point away from the Root Switch.
What ports get blocked by Spanning Tree?
Ports that are not Root Ports, or Designatied Ports.
They are also called ‘Alternate Ports’ in Cisco Spanning Tree standards.
What are the steps to manually identify Spanning Tree port status?
- Find Root Switch (best Bridge ID)
- All ports on Root Switch are Designated Ports
- Find Root Ports on other switches (lowest cost to Root Switch on each device)
- The other side of those links are going to be Designated Ports
- On links that are left, find Designated Ports (best path back to Root Switch)
- The rest are Blocking ‘designated ports’
List types of industry standard Spanning Tree Protocols
(probably not in the test)
Open Standards
- Spanning Tree Protocol (STP) - One Root Switch LAN, ignores VLANS, slow.
- Rapid Spanning Tree Protocol (RSTP) - improved convergency time. Still ignores VLANS.
- Multiple Spanning Tree Protocol (MSTP) - Supports grouping of VLANS into different spanning tree instances.
List types of Cisco Spanning Tree Protocols
Cisco Standards
- Per VLAN Spanning Tree Plus (PVST+) - Seperate Spanning Tree instance for every VLAN. This is the default on Cisco Switches. Slow.
- Rapid Per VLAN Spanning Tree Plus (RPVST+) - improved convergency time. Still uses seperate Spanning Tree instance for every VLAN.
Command to view Spanning Tree info:
SW1# show spanning-tree
Highest or Lowest Root Bridge Priority number wins?
Lowest
Command to configure a switch to be Root Switch in the enviroment?
Primary Switch:
CoreSwitch1(config)# spanning-tree vlan 10 root primary
CoreSwitch2(config)#spanning-tree vlan 20 root primary
Secondary Switch:
CoreSwitch1(config)# spanning-tree vlan 20 root secondary
CoreSwitch2(config)#spanning-tree vlan 10 root secondary
What is PortFast?
Turns a switch port on (forwarding) before listening for Spanning Tree BPDU packets.
(can take up to 50 seonds if PortFast is not enabled)
Command to enable PortFast
By Port:
SW1(config)# interface range f0/2 - 9
SW1(config-if-range)# spanning-tree portfast
All Ports by default:
SW1(config)# spanning-tree portfast default
SW1(config)# interface f0/24
SW1(config-if)# no spanning-tree portfast