Jeremy's IT Lab
Day 21 Part 3Switch/Route

Root Guard (STP Toolkit)

20m6 chapters83 cues12 cards1 lab
Day 21 Part 3YT: 2XE_PgkvSic
00:00 / 19:44

Synchronized Transcript

83 cues indexed • Click dialogue or words to jump
Jeremy

Hello and welcome to Jeremy's IT Lab in this video we'll cover another feature in the STP toolkit this time the focus is root guard as the name implies root guard guards the root Bridge of the LAN ensuring that.

Jeremy

Another switch with a lower Bridge ID can't take over the role it's typically used when connecting your switches to someone else's switches that you don't have direct control over.

Jeremy

For example if a service provider connects their switches to a customer's Network the provider might want to ensure that the root Bridge remains in the service provider's network and root guard can help with that.

Jeremy

Let's get started here's what we'll cover this is the third video in the STP toolkit section of this course we've already covered Port fast BPDU guard and BPDU filter in the previous few videos and.

Jeremy

Now we're moving on to root guard which prevents a port from becoming a root Port by disabling it if Superior bpdus are received thereby enforcing the current root Bridge as I mentioned in the intro this can be very useful.

Jeremy

When connecting your land to another LAN that you don't have direct control over there's also one more feature in the toolkit that you need to know for the CCNA Loop guard we'll cover that in the.

Jeremy

Next video so why is it important to ensure that a specific switch Remains the root Bridge before we look at root guard let's.

Jeremy

See why it's valuable as you know STP prevents Loops by electing a root bridge that switch one in the network above and ensuring that each other switch has only one valid path to reach it in this network switch 2 has one active path to reach switch one the direct connection between.

Jeremy

Switch 2 and switch one and same for switch 3 only its direct link to switch one is active the link between switch 2 and switch 3 is disabled to prevent Loops any of these three switches could be the root bridge and STP would fulfill its role of preventing Loops.

Jeremy

But you shouldn't randomly select the root Bridge good placement of the root bridge is important and some things you should consider are optimal traffic flow.

Jeremy

For example you should try to minimize latency and congestion in the land latency just means how much time it takes traffic to travel through the land and congestion refers to how busy the network is.

Jeremy

If you try to pump too much water through a small pipe at once it's not going to be very efficient and the same principle applies to network connections.

Jeremy

So with that in mind why did I select switch one as the root bridge for this for this landan well in most lands like this the PCS like those connected to switch 2 and switch 3 don't communicate with each other very much usually they want to communicate with servers outside of the LAN over the Internet.

Jeremy

Over the wide area network the WAN Etc so we want to ensure that the PCS have an efficient path to reach R1 their gateway to the outside world and.

Jeremy

That's why I selected switch one as the root Bridge traffic from host connected to switch 2 takes the switch 2 switch one link and traffic from host connected to switch 3 takes the switch 3 switch one link.

Jeremy

This is the most efficient path for each host's frames to reach reach R1 another consideration When selecting the root bridge is stability and reliability once you select a root bridge that Prov provides an efficient path for traffic in the LAN you want that switch to remain up and operational.

Jeremy

For as long as possible so if you are using multiple kinds of switches in the LAN one of the more advanced and reliable switches should be the root bridge.

Jeremy

For example if you only have enough budget to buy a couple of new switches and the rest of them are old junkers you found in the closet you should make one of the new switches the route as you can probably rely on it not to die out after a few weeks of operation operation.

Jeremy

So those are a couple of considerations When selecting the root Bridge optimal traffic flow and stability and reliability let's focus on.

Jeremy

The first one and see what happens if we make a different switch the root bridge now switch three is the root bridge what's wrong with that traffic from hosts connected to switch 3 takes the same path.

Jeremy

But traffic from switch 2's hosts now has to travel from switch 2 to switch 3 and then from switch 3 to switch one before reaching R1 this adds a bit of latency as the frames are taking a Less Direct path.

Jeremy

But to be honest that's negligible in most cases probably less than a millisecond the true issue is that there could be congestion on the switch 3 switch one link.

Jeremy

If the network is busy when a link is congested frames have to wait their turn to be transmitted and in the worst case some frames might be dropped and that could seriously affect Network performance and user experience no one likes a slow netor nwor.

Jeremy

So the point is that root Bridge selection is important and after we've selected a root Bridge we usually want it to remain stable.

Jeremy

Let's expand the network to show how root guard is useful within your own LAN you can easily control the root bridge by setting its priority to zero.

Jeremy

For example here is switch one's Bridge ID the priority is zero plus one for the VLAN ID remember Cisco switches run PVST plus.

Jeremy

So they always add the VLAN ID to the the priority assuming switch 2 and switch 3 have the default priority this makes switch one the root bridge and for the three switches on the right we'll do the same for switch six making it the root bridge for its LAN however there.

Jeremy

Are cases where you might connect your LAN to other switches outside of your direct control for example maybe the landan on the left is controlled by a service provider and the land on the right is controlled by a customer customer.

Jeremy

This is one example where switches controlled by different organizations might be connected a service provider offering Metro Ethernet services to customers Metro Ethernet isn't something you have to study for the CCNA exam.

Jeremy

But it's often used to connect sites within a MAN a metropolitan area network such as connecting offices within the same city so what happens.

Jeremy

When the service provider and customer connect their networks in this example well switch to 2 and switch 3 will send bpdus saying that switch one is the root bridge.

Jeremy

But switch 4 and switch 5 will also send bpdus saying that switch 6 is the root Bridge so who is Right which switch becomes the root Bridge switch one and switch 6 each have the same Bridge ID up to this point a priority of one and a MAC address.

Jeremy

Starting with 52541 but the next digit for switch one is a and the next digit for switch 6 is 8 so switch 6 has a lower Bridge ID and that means it will become the root Bridge.

Jeremy

So the lesson here is that even if you set your root Bridges priority to zero its role can be taken by another switch with a lower MAC address like switch six in this case.

Jeremy

So with no Safeguard in place to enforce switch one as the root Bridge switch one switch two and switch three all accept switch six as the root Bridge affecting the service providers STP topology both the switch 1 switch 3 link and the switch 2 switch.

Jeremy

3 link are disabled so frames from switch 3 to switch one must take a detour through the customer's LAN this is obviously not an efficient traffic path.

Jeremy

But root guard can be used to avoid a situation like this root guard can be configured to protect your STP topology by preventing your switches from accepting Superior bpdus from switching is outside of your control and a superior BPDU is a BPDU with Superior.

Jeremy

Parameters when it comes to the STP algorithm for example a BPDU that claims a better root Bridge ID switch six's bpdus claim a lower root Bridge ID than switch ones.

Jeremy

So switch sixes are superior so if you want to ensure that the root Bridge remains in your LAN you can configure root guard on the ports connected to switches outside of your control we looking at this example from the perspective of the service provider.

Jeremy

So that means switch to g02 and switch 3 g02 which are connected to the customer switches the command to enable root guard on a port is spanning tree guard rout in interface config mode unlike PortFast BPDU guard and BPDU filter there is no command to enable.

Jeremy

It by default from Global config mode you can only configure it in interface config mode now that root guard is enabled on switch 2 and switch 3's g02 ports what happens.

Jeremy

When they receive bpdus from switch 4 and switch 5 claiming that switch 6 is the root bridge if a root guard enabled Port receives a BPDU it will enter the broken root inconsistent State effectively disabling it we'll examine what those terms mean.

Jeremy

When we look at the CLI of these switches but basically this means that the port won't be able to forward frames and will discard any frames it receives all traffic is cut off and switch 1 switch 2 and switch 3 won't accept switch 6 as the root Bridge.

Jeremy

So even though the service provider and customer lens are physically connected they can't communicate before moving on I want to point out that switch 2 g02 and switch 3 g02 as well as the ports they connect to on switch 4 and switch 5 are all designated.

Jeremy

Ports normally there can only be one designated Port per link but in this case the switches disagree on who the root bridge is just remember that in a normal functional spanning tree LAN there should only be one designated Port per link.

Jeremy

But this is a special case because root guard is blocking the link okay root guard prevented the customer from influencing the service provider's STP topology solving the problem for the service provider.

Jeremy

But that also means the customer can't communicate over the service providers Network how can we fix this to reenable a port disabled by root guard you must solve the issue that disabled the port in other words the disabled Port needs to stop receiving Superior bpdus to stop the superior bpdus.

Jeremy

The service provider should tell the customer to increase the priority of their switch so the customer increases switch 6's priority to 496 plus one for the vline ID.

Jeremy

And then what happens once the superior bpdus received by switch 2 and switch 3 age out the ports will automatically be re-enabled and how long does that take well as you already know a BPDU max age is 20 seconds by default.

Jeremy

So it should take about 20 seconds and then switch 2 and switch 3 g02 should be re-enabled and not only will they be re-enabled.

Jeremy

But also switch 4 switch 5 and switch 6 will finally accept switch one as the root bridge and the final STP topology might look something like this switch one is the root Bridge all other switches have one active path to reach switch one and the remaining links are blocked.

Jeremy

So the point to remember here is that to reenable a port that has been disabled by root guard you don't have to do anything in the CLI of switch to or switch 3 the switch is using root guard you just need to stop the superior bpdus.

Jeremy

And then the disabled ports will automatically recover in this case the service provider told the customer to modify their switch's Bridge ID.

Jeremy

And then the issue was fixed since root guard only needs a single command to configure it there's not much to show in the CLI but let's rewind a bit and.

Jeremy

Look at that process once more in the CLI so once again switch 6's STP priority is one making its Bridge ID Superior to switch ones I enabled root guard on switch 2 g02 with the command spanning tree guard route I'm only showing switch to CLI here.

Jeremy

But I did the same on switch 3 too after issuing the command a message is shown saying that root guard has been enabled on the port.

Jeremy

So what happens when switch 2 and switch 3 receive bpdus from switch 4 and switch 5 as this log message says root guard blocks the ports take a.

Jeremy

Look at the output of show spanning tree g02 status column says bkn and on the right it says root Inc bkn means broken and root Inc means root inconsistent a broken Port is basically disabled it can't forward or receive data frames.

Jeremy

And root inconsistent tells us why the port is broken it was disabled by root guard let's fix that problem by asking the customer to increase switch 6's priority which is.

Jeremy

Now 497 after about 20 seconds switch 2 shows a message saying that g02 is now unblocked and as you can see here its status is no longer broken and the root inconsistent message is gone.

Jeremy

So the network once again converges with switch one as the root Bridge before we move on to summarize this video I just want to clarify where you should configure root guard switch 1 switch 2 and switch 3 belong to a service provider and they want to ensure switch one Remains the.

Jeremy

Root Bridge a customer switch shouldn't disrupt the STP topology by becoming the root Bridge therefore root guard is configured on the ports connecting to customer switches like switch to g02 and switch 3 g02 however note that you shouldn't always configure root guard on every.

Jeremy

Port connected to another Network for example while the customer switches connect to the service provider the customer shouldn't configure root guard on their own ports.

Jeremy

If the customer configures root guard on switch 4 and switch 5 sports that connect to the provider those ports will just be disabled if they receive Superior bpdus blocking those links and there's no point in connecting to a service provider.

Jeremy

If you can't communicate over their net Network okay let's summarize root guard When selecting a lands root Bridge you should consider a few things such as optimal traffic flow that minimizes latency and congestion as well as the stability and reliability of the switches the root Bridge plays.

Jeremy

A key role in the spanning tree so it shouldn't be be a random decision within your own LAN you can easily control the root bridge by setting its priority to zero and.

Jeremy

If you have direct control over all of the switches in the network there's no need to configure root guard but there are cases where you might connect your switches to other switches that are outside of your control the example we used in this video was a service provider switches connecting to a customer switches which.

Jeremy

Might happen when the service provider is offering Metro Ethernet services for example example root guard can be configured on specific ports to prevent them from accepting Superior bpdus from other switches.

Jeremy

For example a service provider switches generally shouldn't accept Superior bpds from a customer switches you can use spanning tree guard rout to enable root guard on a port and there is no command to enable it by default from Global config mode Port fast can be enabled by default.

Jeremy

Because in most cases you want to enable It On All Access ports because they usually connect to end hosts and BPDU guard and filter can be enabled by default on all Port fast enabled ports.

Jeremy

Because those features are often used together but root guard isn't the kind of feature that you want to enable on ports by default it should only be enabled on specific ports where needed and.

Jeremy

That's why it can't be enabled in global config mode and what exactly does root guard do it prevents a port from becoming a root Port if it receives a superior BPDU instead the port status will be broken and roote inconsistent basically broken means the port is blocked.

Jeremy

It can't forward frames and root inconsistent tells us why it is broken because root guard blocked the port but if the port stops receiving Superior bpdus it will automatically recover you don't need to manually reenable the port or use air disable recovery like with BPDU guard.

Jeremy

Okay that's all for this video on root guard I hope it was is helpful thanks for watching before finishing this video let me thank my jcmp level channel members who support me through YouTube channel membership to become a member please click the join button under the.

Jeremy

Video thanks to yonatan makura Velva jacum George nir chadri Gustavo maso Marcel Lord dragos Hera Zak sha May Salman Vel 194 Mark Jackson bold 1 c1u Gerald griam fristo 127 Hector Hernandez arar conz 5et oad Daniel Brown.

Jeremy

Jose Alvarez husse yavuz Samuel Tavarez Roger brat Seth Kevin Hayes Brian Grant gorgi gev cats for Life Addison Pereira frad 69 madm Mark Mark 50484 Alexander stratan hiago Balo dmj 2 Lucien sto toyou.

Jeremy

Kurt Nell Steve Cox Jasper Yim Pedro Hartman tricky Mickey 123456 Ivano capuano Jefferson steel flesh flesh toxic Wilmer Romero cenan SAR Daniel Andrade dragos George hirro Francisco Philip yovanovich.

Jeremy

Trevor Goldman Sunny igu Jeffrey C edifer dimitro leis mikal chapski honth jabel Puri darush D Juan Morales Gonzalo Nicholas doomed Soul Christine Schubert Julio Maya eraso Klan kedmi Hashem Roda.

Jeremy

Anand Aban idola Ismael salami Clyde mororo bindo Orlando Flores Adrien Martinez MD Daniel witz pasant M Ray Enriquez gg7 Tobe hedin uro Ry Mahia Vic Brandon buers MDS electron narja Raymond.

Jeremy

Kirby G Gant Henry Hada Yousef taten Pablo guto Omar abdal fata yuk shika furan yelson um Shankar Sharma Philip kraton Vishal bansel and 12 062 Alfred sorry.

Jeremy

If I pronounced your name incorrectly but thank you so much for your support thanks to you and my other supporters I am able to make these videos and release them for free on YouTube.

Jeremy

So I really appreciate the support another great way to support the channel is to like the video leave a comment subscribe and most importantly share this video with others.

Jeremy

So if this video was helpful I'd appreciate it if you did any of those thanks thanks for watching watching [Music].

Keyboard shortcuts

Shortcuts are ignored while you are typing in a search box, note field, or the scratchpad.

Playback

SpaceK
Play or pause
←→
Seek 5 seconds
JL
Seek 10 seconds
C
Toggle in-video captions

Scrubber (when focused)

←→
Seek 5 seconds
Shift←/→
Seek 10 seconds
Page UpPage Down
Seek 30 seconds
HomeEnd
Jump to start or end

Flashcards

Space
Reveal the answer
1234
Grade Again / Hard / Good / Easy

Navigation

←→
Move between study-mode tabs
HomeEnd
First or last study-mode tab
?
Open or close this sheet