All right, it is time to jump into the lab and do some configurations.
We're going to focus on the macros, the timer configurations, and well, the
macros that allow
us to do the timer configurations.
And then we're also given a topology with five switches.
So take a moment to maybe look at the topology, figure out which ports you
would expect to
be blocked based on MAC addresses, switch three should be the root when we
first fire
this up.
And from there, maybe throw a priority statement or two on using the macro WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And from there, maybe throw a priority statement or two on using the macro
statement to change
the root when we're done to make sure that we know which link would be blocked
based
on our calculations.
So either way, it's good practice, but let's go ahead and accomplish this lab
challenge.
First step here is using only root macros to configure switch one to be the
root and switch
through to be the backup, switch to to be the backup.
Now switch three again, we said that we'd expect this to be the root and we're
supposed
to use VLAN 10 for all of this.
I'm going to say VLAN 10 root.
And indeed, the lack of root port says that switch three is the root. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And indeed, the lack of root port says that switch three is the root.
And again, I'm going to switch one here and use that macro spanning tree VLAN
10 rather
than priority, I'm going to say root primary.
And then when I do that show spanning tree VLAN 10 root command.
So I am the root, but also notice the value that was chosen is 24 K. And so
that's what
we'd expect based on everything we've talked about.
Switch to I'm going to run that secondary command spanning tree VLAN 10 root WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Switch to I'm going to run that secondary command spanning tree VLAN 10 root
secondary.
And then if I do show spanning tree for VLAN 10, I'll see all the information
for my own
bridge ID, including my priority of 28 K, which is exactly what the secondary
is going
to do.
Next using only root macros configure.
Oh, that's what we just did.
All right, determine the diameter of the network and adjust the timers.
So with the network looks like this, where we have four switches in a square WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So with the network looks like this, where we have four switches in a square
and another
switch down here.
So what is the diameter here for the most part outside of rather unique
situations, the number
of switches is typically going to be our diameter for the smaller lab type of
scenarios.
And a production network will have to do a little bit more work.
The idea here is to eliminate redundant connections where we need to, in fact,
I could just erase
these like that.
And that allows us to see what this network looks like if some of these links WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
And that allows us to see what this network looks like if some of these links
are down.
So we see starting from one of the edge switches here, one, two, three, four,
five.
And remember, we do include the first switch that we start counting from.
So this is a diameter of five.
And so we want to go ahead and configure timers that are appropriate.
So what we want to do is get onto the root here.
We can go ahead and do it from here.
And I say spanning tree VLAN 10.
And it's the same macro.
We were just going to add more parameters. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
We were just going to add more parameters.
I'm going to say root primary.
And we're on a question mark.
We see diameters and options.
So I'll say five here.
And then I also need to know what my hello timer is going to be.
So I can go ahead and type in hello time.
And then the lab task said to base it on one second.
So I'm going to say one second.
And then when I do a show spanning tree, VLAN 10, I'm going to see that my
hello timer
was set to one second based on that command and then max age and four delay are WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
was set to one second based on that command and then max age and four delay are
pretty
low.
They go a lot smaller when we're using one second to lows, which that's a big
driving
factor.
So the parameter five is a little bit less than the default diameter of seven.
So that's lab task two lab tasks three without using macros and sure the backup
route will
use the same timer values if it takes over as the roots.
So basically what we're saying here is let's use the real timer commands.
And we want to match one 10 and seven.
So I'm going to come over to switch to and say spanning tree VLAN 10. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So I'm going to come over to switch to and say spanning tree VLAN 10.
We see the different options here.
So I'm going to start with hello time of one second, then spanning tree VLAN 10
forward
time was was it 10 seconds for max age?
Yeah, and seven for four.
So seven for forward.
And then max age is 10.
So there we go.
That's test number three.
And so that's pretty much it.
Now we do have this bonus challenge, which is using only root macros adjust
switch one
to use a priority of eight K. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
to use a priority of eight K.
So here's the idea.
If we're only going to use root macros, I can't specify a priority, but I do
recall that every
time let's say switch three, we know switch three is better than switch one.
If I were to adjust this to say, Hey, I want you to be the root and I'm going
to use the
root primary, well, it's going to match what route what switch one is.
So switch one right now is 24 K. So then I would use this set switch three to
be 24 K. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
be 24 K.
And then that's going to make switch three the route.
Then I come back here to switch one and use the same command and it will go to
20 K to
beat switch three.
If I alternate back and forth, eventually I will get down and it will take a
while.
It will get down to the target value.
What do we say?
We said eight K probably shouldn't have gone that low, but either way we will
eventually
get there.
We see we need to do it four times on each one.
So we don't have to do this the whole time, but let's just do a few times. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
So we don't have to do this the whole time, but let's just do a few times.
So if I say spanning tree VLAN 10 root primary on switch three, now I can do my
root command.
See I am the root and my priorities 24 K. And then if I do the same command
here, spanning
tree VLAN 10 root primary spanning tree VLAN show spanning tree VLAN 10 root, WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
tree VLAN 10 root primary spanning tree VLAN show spanning tree VLAN 10 root,
we see that
now I am 20 K. So if I come back to switch three and say let's do this again, I
'm going
to run the same macro.
Now I'm at 20 K switch one same command.
Now I'm at 16 K and so on and so forth.
So this is just a little exercise.
So that should be at 16.
Oops.
Now that should be at 12. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
Now that should be at 12.
I guess we will go ahead and do it the whole time.
Now this should be at 12.
Now we should be at eight.
So let's go ahead and run this command.
And indeed we landed at the eight K value.
So again, the fact that we were restricted to just using the macro says that we
really
in order to do this bonus task, we really needed to understand what the macros
are doing.
And then how to manipulate them to get us exactly what we were looking for.
Probably nothing we're ever going to do in production, but a little fun
exercise that
again really emphasizes how these macros actually function.
I hope this has been informative for you and I'd like to thank you for viewing. WEBVTT X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000
I hope this has been informative for you and I'd like to thank you for viewing.