WEBVTT

1
00:00.000 --> 00:04.300
All right let's go ahead and jump into the lab and just see these macros in

2
00:04.300 --> 00:08.360
action. So what we have here is we've got a topology that is the same topology

3
00:08.360 --> 00:12.140
that we had in the previous skill. It's just a square of switches. They're all

4
00:12.140 --> 00:12.360
set

5
00:12.360 --> 00:19.200
to 32,000 so it's the default priority everywhere 32k and just because of MAC

6
00:19.200 --> 00:24.720
addresses switch 3 happens to win the root role. Now again that's just because

7
00:24.720 --> 00:29.000
it has the lowest MAC address. This is going to be important as we demonstrate

8
00:29.000 --> 00:34.240
which switches take over is the root in which situations. So let's go ahead and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

8
00:29.000 --> 00:34.240
which switches take over is the root in which situations. So let's go ahead and

9
00:34.240 --> 00:39.720
clear this and let's run a quick demo. So again they're all at 32k. We know

10
00:39.720 --> 00:39.920
that

11
00:39.920 --> 00:43.720
switch 3 in theory is the root. Let's just do a show, spanning tree. We'll do

12
00:43.720 --> 00:48.240
everything in VLAN 1 here so VLAN 1 root and we do see that I'm the root. I

13
00:48.240 --> 00:48.440
know

14
00:48.440 --> 00:51.970
that because there's no root port. So that makes me the root even though I've

15
00:51.970 --> 00:52.080
got

16
00:52.080 --> 00:57.920
the default 32k priority. So let's go and get on to switch 1 here and we'll try

17
00:57.920 --> 01:03.160
to make switch 1 the primary and we'll do that using our spanning tree command
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

17
00:57.920 --> 01:03.160
to make switch 1 the primary and we'll do that using our spanning tree command

18
01:03.160 --> 01:08.120
spanning tree VLAN 1 and then this is where I could set the priority manually

19
01:08.120 --> 01:14.400
and set one of those increments of 4096 or we'll find that I have this root

20
01:14.400 --> 01:19.480
command. This is what's going to allow me to set the primary and secondary and

21
01:19.480 --> 01:25.240
this is our macro. So I'm going to set root priority or root root primary hit

22
01:25.240 --> 01:31.520
enter and let's see what happened here. If I do a show spanning tree VLAN 1
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

22
01:25.240 --> 01:31.520
enter and let's see what happened here. If I do a show spanning tree VLAN 1

23
01:31.520 --> 01:33.160
root.

24
01:33.160 --> 01:38.960
Now we see that I'm the root because I no longer have a root port and notice my

25
01:38.960 --> 01:44.320
configured priority. Now we said that it would go as only as low as needed so

26
01:44.320 --> 01:48.280
you could say well why didn't it go to 28k? Well because again the primary

27
01:48.280 --> 01:48.960
macro

28
01:48.960 --> 01:52.160
is intended to work with the secondary and the secondary uses 28. So that's

29
01:52.160 --> 01:56.840
always said the maximum or the highest value that this is going to use is the

30
01:56.840 --> 02:02.000
24k value and that's indeed what it shows here. So it shows the 24k let's go
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

30
01:56.840 --> 02:02.000
24k value and that's indeed what it shows here. So it shows the 24k let's go

31
02:02.000 --> 02:07.400
back to switch 3 run the same command. We now do have a root port and our root

32
02:07.400 --> 02:13.540
has that configuration. So switch 3 is no longer the root it is now switch 1.

33
02:13.540 --> 02:13.640
So

34
02:13.640 --> 02:17.000
let's go and test the secondary command. I'll get on to switch 2 here and do a

35
02:17.000 --> 02:23.760
spanning tree VLAN 1 and again we'll just say root secondary and now let's do a

36
02:23.760 --> 02:31.280
show spanning tree for VLAN 1. So we see that the root is switch 1 here with
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

36
02:23.760 --> 02:31.280
show spanning tree for VLAN 1. So we see that the root is switch 1 here with

37
02:31.280 --> 02:31.440
its

38
02:31.440 --> 02:37.200
priority of 24k and we see that my priority is indeed 28k. So the macros are

39
02:37.200 --> 02:44.800
working like we thought. So now we know switch 1 is at 24k what happens if I

40
02:44.800 --> 02:44.920
get

41
02:44.920 --> 02:49.780
on to switch 3 and run the same command. So let's do or the same macro rather.

42
02:49.780 --> 02:50.360
So

43
02:50.360 --> 02:57.520
config T here spanning tree VLAN 1 root primary do show spanning tree root

44
02:57.520 --> 03:03.760
what happened? Well I didn't filter the VLAN so let's look at VLAN 1 here. So
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

44
02:57.520 --> 03:03.760
what happened? Well I didn't filter the VLAN so let's look at VLAN 1 here. So

45
03:03.760 --> 03:03.880
what

46
03:03.880 --> 03:08.390
happened was it's no longer the root we or it is it is the root and no longer

47
03:08.390 --> 03:08.560
has

48
03:08.560 --> 03:13.000
a root port. So we know it took over as the root but notice the priority is the

49
03:13.000 --> 03:18.760
exact same. Switch 3 we established has the lowest MAC address as the best MAC

50
03:18.760 --> 03:22.840
address. It already won root when everybody had the same priority. So switch

51
03:22.840 --> 03:27.880
3 knew that it would win as the root if it just went down to 24k. So that's all

52
03:27.880 --> 03:33.080
it had to do it didn't have to go any lower than 24k because switch 1 at 24k
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

52
03:27.880 --> 03:33.080
it had to do it didn't have to go any lower than 24k because switch 1 at 24k

53
03:33.080 --> 03:39.440
had the worst MAC address. So switch 3 became the root at 24k. Switch 1 we can

54
03:39.440 --> 03:44.320
now run the same command here we see that it does indeed have a root port which

55
03:44.320 --> 03:48.240
means it's no longer the root. So once again now let's get into a little war

56
03:48.240 --> 03:53.920
here. Now let's go ahead and configure the same thing spanning tree VLAN 1 root

57
03:53.920 --> 03:59.880
primary here on switch 1. So before we take a look at what happened what do you

58
03:59.880 --> 04:03.920
think is going to happen here? We're telling switch 1 to become the root we
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

58
03:59.880 --> 04:03.920
think is going to happen here? We're telling switch 1 to become the root we

59
04:03.920 --> 04:09.400
know that switch 1 and switch 3 are both 24k and switch 3 just went down

60
04:09.400 --> 04:16.040
to tie switch 1 to become the primary. So what switch 1 going to do? Well what

61
04:16.040 --> 04:19.760
switch 1 is going to do is it's going to say well I can't win at this value so

62
04:19.760 --> 04:19.840
I'm

63
04:19.840 --> 04:26.680
going to drop down another 4k. We'd expect it to be 20k rather than 24k so if

64
04:26.680 --> 04:31.320
I run this command we do see that switch 1 no longer has a root port means it
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

64
04:26.680 --> 04:31.320
I run this command we do see that switch 1 no longer has a root port means it

65
04:31.320 --> 04:31.440
is

66
04:31.440 --> 04:37.360
the root and it's running 20k. So that's how the primary MACR works it's always

67
04:37.360 --> 04:45.080
going to keep battling back and forth until it figures out what the ultimately

68
04:45.080 --> 04:50.400
what the value is that I need to do to become or need to choose to become the

69
04:50.400 --> 04:56.720
root. So that's how the primary works now notice the primary is now at 20k.

70
04:56.720 --> 05:01.560
Let's go back and run that secondary command again and see what happens. So
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

70
04:56.720 --> 05:01.560
Let's go back and run that secondary command again and see what happens. So

71
05:01.560 --> 05:06.720
we know that we are running a priority of 28k. We're no longer the backup root

72
05:06.720 --> 05:06.880
by

73
05:06.880 --> 05:12.200
the way switch 3 still has that priority of 24k. So let's get on here and say

74
05:12.200 --> 05:12.360
hey

75
05:12.360 --> 05:17.400
I want you to be the secondary. So remember what we said would happen is

76
05:17.400 --> 05:23.200
that this isn't going to do much for me. So I just ran that command again

77
05:23.200 --> 05:29.680
show VLAN 1 spanning tree and I still have a priority of 28k. So that

78
05:29.680 --> 05:36.360
secondary MACR does nothing to ensure that I am the secondary instead it's
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

78
05:29.680 --> 05:36.360
secondary MACR does nothing to ensure that I am the secondary instead it's

79
05:36.360 --> 05:41.880
only going to just be set to 28k period that's all it does it's not

80
05:41.880 --> 05:46.440
particularly useful relative to the primary but it is useful if we're using

81
05:46.440 --> 05:51.040
the primary in a default environment that way the primary should be 24k and

82
05:51.040 --> 05:56.520
the secondary would be 28k. So that is how these MACR's come together we can

83
05:56.520 --> 06:01.560
continue to play with this. If I wanted to I could get in here and I could say
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

83
05:56.520 --> 06:01.560
continue to play with this. If I wanted to I could get in here and I could say

84
06:01.560 --> 06:07.200
you know make a lower priority and see how that comes together as I continue to

85
06:07.200 --> 06:12.440
put root priorities these root primary and root secondary commands in but I'd

86
06:12.440 --> 06:15.640
encourage you to get into the lab yourself and play with this to make sure

87
06:15.640 --> 06:20.520
that we fully understand how these MACR's come together.
