CCNA #013: Spanning Tree CCNA Exam Questions: Know the answer? CCNA 200-125 exam
Key Takeaways
Covers Spanning Tree protocol and its application in CCNA exam questions
Full Transcript
[Music] welcome to the vlog so the very first question that you need to know the answer to is which protocol is used to stop loops in a switched environment and the answer is spanning tree this is one of multiple vlogs are discussing spanning tree so spanning tree is a protocol that you run on switches in a layer 2 environment to stop loops from taking place switches will flood broadcast multicast and unknown unicast frames out of all ports except as a port in which it was received this can cause major problems in a network and may result in broadcast storms where the entire network is brought down by broadcasts that are replicated throughout the network so hence spanning tree is a protocol used on switches to stop loops in this topology we've got three switches switch 1 switch 2 and switch 3 so let's start with switch 1 show spanning tree is a spanning tree enabled by default on Cisco switches and the answer is yes on other vendors searches such as those from HPE spanning tree is not enabled by default so be careful if you're using Cisco switches with other vendor switches spanning tree may not be enabled by default but it is fortunately on Cisco switches the command show spanning tree shows us firstly that spanning tree is enabled on the switch it's enabled on VLAN 1 in this example and we are using rapid per VLAN spanning tree even though the output displays rapid STP or or STP this is actually rapid per VLAN spanning tree the priority of the switch is set to 1 this is its address and the switch is currently the root of the spanning tree all ports on the root switch will be forwarding the role of the port is set to designated and I'll explain port roles in a separate video for now let's concentrate on the state of the port engine is three we only have these two ports connected in our topology additional ports are shown here but we'll ignore those ports so ingenious 3 we can update our topology to state 2 that this switch is the route we can state to that this port is forwarding and this port is forwarding once again the show spanning tree command shows us that the supplies to vlan1 at at the moment - that's the only vila and configured on the switch so show VLAN as an example shows us that this is the only ethernet VLAN on the switch these VLANs can be safely ignored because we're not using token ring or FDDI these days you could also use commands such a show spanning tree and specify a VLAN number and use the option summary to see summary information so the switch is known as the root bridge or the root switch for VLAN 1 the reason the keyword bridge is used is that spanning tree was developed for bridges bridges came before switches and hence we talked about a root bridge even though today we actually talking about a root switch no ports are blocking all ports are forwarding on the switch so what about switch t show spanning tree the switch is also running rapid per VLAN spanning tree notice here however we have a cost to get to the root the root switch has a lower priority than the local switch by default in spanning-tree the priority of a switch is three to seven six eight the roots which is determined in a topology based on two criteria firstly lowest priority that's the same on all the switches then lowest MAC address those two combinations make up the bridge ID of a switch the switch with the lowest bridge ID becomes the root but it's based on priority first and then MAC address so because switch one has a lower priority than the local switch the local switch is not to the root if we look at that output on switch one once again what you'll notice is the root ID and the bridge ID are the same so the priority is the same and the MAC address is the same for both the root and the local switch and that's because switch 1 is the root so on switch to the MAC address is different to the MAC address of the root search and in this case so is the priority now the priority on switches is by default 3 to 7 6 8 the extended system ID is the VLAN number that we're looking at so this number 3 to 769 is the combination of the default priority of 3 to 7 6 8 plus the VLAN number which is 1 so the switch has a priority of 3 to 7 6 9 it's not the root we can see that port 1 is the root port of the switch that is the best port to use to get to the root switch that port is forwarding gigabit is 0 1 is known as an alternate port it's an alternative way to get to the root bridge of that port is blocking so this port is blocking on switch to the sport is forwarding and that's what we can see over here now we could also use this command show spanning tree route to see which port is the root port to get back to the roots which essentially the root port is the best port on the switch to use to get to the roots which so gigabit at zero zero is the best port on switch to to get back to the roots which which is switch one what about switch 3 so show spanning tree the switch is not to the root either notice the priority and the MAC address are different than the local switch the cost to get to the roots which is 4 and the root port is gigabit zero zero so on switch 3 this is the root port which is 14 now gigabit is 0 1 is also forwarding it's the designated port in this topology so the port that's blocking in the topology is gigabit zero one now in brief the way spanning-tree determines which ports are blocking is based on the following we firstly elect the route switch so that's switch one all other switches in the topology determine which port is their best port to get to the root bridge that's known as their root port the switches learn about each other because B PDUs are sent between the switches so this port is the root port of switch 2 and this port is the root port of switch 3 we can see that once again by using the command show spanning tree root root port of switch 3 is gigabit to 0/0 on switch 2 shows spanning tree root once again root port is gigabit 0/0 essentially the root port is the best port to use to get to the root switch based on various criteria the first measure is path cost the path cost is a value allocated to each port and they are added together to get the total path cost to the root bridge so the path cost is 4 from switch 2 to switch 1 and the same is true on switch 3 path cost is 4 different versions of spanning tree use different path cost valleys but that's the cost for a gigabit port on these switches so once the switches have determined the root port which is their best port to use to get to the root switch on a per segment basis they choose what's called the designated port the designated port is the best port on that segment to use to get to the root bridge so on this segment the best way to get to the root bridge is via this port on this segment the best way to get to the root bridge is this port so that's the designated port on gigabit is 0 1 on the link between switch 1 and switch 3 we can see that once again by using the show spanning tree command notice both those ports on the root bridge are designated ports they're the best ports to use to get to the root bridge now in this segment this port was the designated port we can see that here gigabit is 0-1 on switch 3 is the designated port and this port is discarding or blocking industry term is discarding Cisco term often used is blocking and we can see that here in the output now the reason why switch 3 was chosen instead of switch 2 to have the designated port is because the MAC address is lower on switch 3 versus switch 2 so switch 2 if you look at the hexadecimal ei is greater in hexadecimal than to one so according to the spanning-tree calculation this is the best port to use on the link between switch three and switch two to get to the root bridge because switch three has a lower MAC address now in spanning tree one of the first things you want to do is manipulate a spanning tree chooses route ports and designated ports and the like that we will discuss that in a separate Vallabh this was a quick introduction to spanning tree and I showed you how ports were selected in the spanning tree environment and how ports were blocked the process very briefly is select the root bridge will route switch based on priority and then MAC address every other switch chooses a root port which is their best port to use to get to the root bridge every segment has a designated port which is the best port on that segment to use to get to the root bridge all other ports in the topology are set to blocking I hope you've enjoyed the video if it's been of benefit to you please like it and please subscribe to my youtube channel I want to wish you all the very best [Music] you [Music]
Original Description
How much do you know about Spanning Tree? Will you be able to answer these questions? My full course is here: http://www.ccnax.com
#CCNA #CCENT #CCNP
Subscribe to learn how to pass the CCNA 200-125 exam. Also includes content for the ICND1 100-105 and ICND2 200-105 exams.
What do you want to learn? Let me know via the comments.
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from David Bombal · David Bombal · 15 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
▶
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
RYU SDN Controller Part 4: Graphical User Interface (GUI): Practical GNS3 SDN and OpenFlow
David Bombal
HPE Network Protector SDN Application Part 1 - Introduction
David Bombal
HPE Network Protector SDN Application Part 2 : DNS Interception using OpenFlow
David Bombal
HPE Network Protector SDN Application Part 3 - Lab Setup using Physical Switches
David Bombal
HPE Network Protector SDN Application Part 4 - Demo of malicious websites blocked
David Bombal
HPE Network Protector SDN Application Part 5 - Demo OpenFlow table interception flows
David Bombal
HPE Network Protector SDN Application Part 6 - Demo of Physical Switch configuration
David Bombal
HPE Network Protector SDN Application Part 7 - Demo Service Insertion Tunnel / GRE Tunnel
David Bombal
HPE Network Protector SDN Application Part 8 - Demo SDN OpenFlow Reporting
David Bombal
HPE Network Protector SDN Application Part 9 - Demo switches interception of DNS traffic
David Bombal
GNS3 Talks: GNS3 version 1.5.X Appliance Tips
David Bombal
CCNA 200-125 Exam: AAA demo: TACACS+ with GNS3
David Bombal
GNS3 2.0.0 beta 2 install
David Bombal
CCNA #012: Learn SNMP with GNS3, Wireshark and Solarwinds NPM - CCNA 200-125 exam
David Bombal
CCNA #013: Spanning Tree CCNA Exam Questions: Know the answer? CCNA 200-125 exam
David Bombal
GNS3 2.0.0 beta : GNS3 VM integration with GNS3 GUI
David Bombal
CCNA #018: Routing exam questions: Who wins? OSPF, EIGRP or RIP? Sure? CCNA 200-125 exam
David Bombal
CCNA #019: Spanning Tree CCNA Exam Questions: Root Bridge, Root Port and more: CCNA 200-125 exam
David Bombal
GNS3 Download, installation and configuration - GNS3 1.5.3 and Windows 10
David Bombal
CCNA #023 EIGRP Neighbor Troubleshooting (DUAL Issues) for the CCNA 200-125 Exam
David Bombal
GNS3 2.0 Architecture and schema Part 1: What is the GNS3 Controller?
David Bombal
GNS3 2.0 Architecture and schema Part 2: Emulators and virtualization
David Bombal
CCNA #028 VTP Troubleshooting for the CCNA 200-125 Exam
David Bombal
CCNA #029 VTP & DTP Troubleshooting for the CCNA 200-125 Exam
David Bombal
CCNA #030 VTP Troubleshooting for the CCNA 200-125 Exam
David Bombal
GNS3 : How to download Cisco IOS images and VIRL images. Which is the best? How do you get them?
David Bombal
GNS3 ASA setup: Import and configure Cisco ASAv with GNS3
David Bombal
GNS3 switching setup and options: Cisco and other switching options in GNS3
David Bombal
GNS3 switching setup and options Part 2: GNS3 unmanaged built-in switch
David Bombal
GNS3 switching setup and options Part 3: Router on a sick with GNS3 unmanaged built-in switch
David Bombal
GNS3 switching setup and options Part 4: Etherswitch Router for Cisco Dynamips Part 1
David Bombal
GNS3 switching setup and options Part 5: Etherswitch Router for Cisco Dynamips Part 2
David Bombal
GNS3 switching setup and options Part 6: Etherswitch, Wireshark, 802.1Q, InterVLAN routing
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 1: GNS3 Switching Part 7
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 2: GNS3 Switching Part 8
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 3: GNS3 Switching Part 9
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 4: GNS3 Switching Part 10
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 5: GNS3 Switching Part 11
David Bombal
GNS3 Nexus (NX-OSv) switch setup and configuration Part 1: GNS3 switching options Part 12
David Bombal
GNS3 Nexus (NX-OSv) switch setup and configuration Part 2: GNS3 switching options Part 13
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 6: GNS3 Switching Part 14
David Bombal
GNS3 Talks: Docker, Open vSwitch, SDN and OpenFlow Part 7: GNS3 Switching Part 15
David Bombal
GNS3 Cisco CSR 1000v setup and configuration Part 1: GNS3 NFV
David Bombal
GNS3 Cisco CSR 1000v setup and configuration Part 2: GNS3 NFV
David Bombal
GNS3 Talks: Use the NAT node to connect GNS3 to the Internet easily!
David Bombal
GNS3 Talks: GNS3 2.0 RC1 is now available
David Bombal
GNS3 Talks: GNS3 2.0 Portable Projects - easily export and import GNS3 projects
David Bombal
GNS3 Talks: Multiple clients sharing projects in real time, plus console session shadowing!
David Bombal
CCNA #035 NAT Troubleshooting Scenario 1 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
CCNA #036 NAT Troubleshooting Scenario 2 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
GNS3 Talks: ESXi, GNS3 VM and KVM support Part 1: leverage servers and the cloud
David Bombal
CCNA #037 OSPF Troubleshooting - can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
GNS3 Talks: ESXi, GNS3 VM and KVM support Part 2: leverage servers and the cloud
David Bombal
CCNA #038 NAT Troubleshooting Scenario 3 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
CCNA #039 - OSPF DR, BR and DROTHER Election - do you know the answers?
David Bombal
CCNA #040 NAT Troubleshooting Scenario 4 - Can you find the issue? CCNA Exam 200-125 troubleshooting
David Bombal
GNS3 Talks: Arista vEOS GNS3 import and configuration Part 1
David Bombal
CCNA #041 - OSPF DR, BR and DROTHER Election - do you know the answers?
David Bombal
GNS3 Talks: Arista vEOS GNS3 import and configuration Part 2
David Bombal
GNS3 Talks: ipterm: Linux, Docker, Python, SDN and more! Part 1
David Bombal
Related Reads
📰
📰
📰
📰
Sieve of Eratosthenes Algorithm
Medium · Programming
Morris Pre Order Traversal
Dev.to · Jaspreet singh
Advanced Stack ApplicationsData Structures and Algorithms Deep‑Dive — Advanced Stack Applications…
Medium · Programming
The Minecraft anvil is a tree-cost optimization problem in disguise
Dev.to · Mark
🎓
Tutor Explanation
DeepCamp AI