WEBVTT

1
00:00.000 --> 00:02.760
All right, let's jump back into the lab here.

2
00:02.760 --> 00:06.040
We're going to focus on this part of the lab topology.

3
00:06.040 --> 00:07.720
It really is the full topology still.

4
00:07.720 --> 00:10.280
We've got the root bridge in switch one and such.

5
00:10.280 --> 00:12.000
But which ports are blocking here?

6
00:12.000 --> 00:14.920
We left switch for blocking on this interface.

7
00:14.920 --> 00:17.280
But let's go ahead and see what else we're blocking on

8
00:17.280 --> 00:20.120
between those two ports that go to switch to.

9
00:20.120 --> 00:21.920
And I did reset the configuration.

10
00:21.920 --> 00:24.240
I got rid of all the cost configurations

11
00:24.240 --> 00:26.240
on those links to switch to.

12
00:26.240 --> 00:29.160
So if I do a show, spanning tree,

13
00:29.160 --> 00:31.040
let's just do blocked ports,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

13
00:29.160 --> 00:31.040
let's just do blocked ports,

14
00:31.040 --> 00:33.880
then we see that we're blocking on gig 02.

15
00:33.880 --> 00:36.200
So is this the port that we were expecting?

16
00:36.200 --> 00:39.080
Because it's really easy to look at this and say,

17
00:39.080 --> 00:40.920
well, this is the lower numbered port.

18
00:40.920 --> 00:43.440
I thought we were supposed to favor lowered number ports.

19
00:43.440 --> 00:44.800
But notice how this is configured.

20
00:44.800 --> 00:47.080
We actually have the higher number port

21
00:47.080 --> 00:49.640
connected to the lower number port this way.

22
00:49.640 --> 00:53.080
And so the fact is that we're going to pay attention

23
00:53.080 --> 00:57.480
to the switch to configuration because the BPDUs

24
00:57.480 --> 00:59.520
are flowing this direction.

25
00:59.520 --> 01:02.800
And again, port priorities, that's an outbound concept.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

25
00:59.520 --> 01:02.800
And again, port priorities, that's an outbound concept.

26
01:02.800 --> 01:06.680
So I look at the fact that gig 03 is the higher interface.

27
01:06.680 --> 01:09.560
And importantly, gig 02 is the lower interface.

28
01:09.560 --> 01:13.720
Therefore, I keep my local port on the right there,

29
01:13.720 --> 01:16.680
gig 03 in an online forwarding state.

30
01:16.680 --> 01:20.560
And I place gig 02 into the blocking state.

31
01:20.560 --> 01:22.440
So that's exactly what we'd expect.

32
01:22.440 --> 01:25.160
But how could I change this without changing

33
01:25.160 --> 01:27.800
the configuration on switch 4?

34
01:27.800 --> 01:29.160
I could use costs.

35
01:29.160 --> 01:31.960
And we've demonstrated that in the last lab video here.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

35
01:29.160 --> 01:31.960
And we've demonstrated that in the last lab video here.

36
01:31.960 --> 01:34.880
But I want to go to switch 2 now.

37
01:34.880 --> 01:36.760
And I want to know more information

38
01:36.760 --> 01:41.560
about what's going on on gig 02 and gig 03.

39
01:41.560 --> 01:44.040
What we're going to do is we're going to do a show spanning

40
01:44.040 --> 01:45.480
tree interface.

41
01:45.480 --> 01:48.760
And I can compare gig 02 and gig 03.

42
01:48.760 --> 01:52.200
So when I look at gig 02, I see that it's

43
01:52.200 --> 01:54.200
using a priority of 128.

44
01:54.200 --> 01:55.680
We said that's the default.

45
01:55.680 --> 01:59.160
And then this internal number that we talk about is number 3.

46
01:59.160 --> 02:02.680
If I look at interface gig 03, we'll
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

46
01:59.160 --> 02:02.680
If I look at interface gig 03, we'll

47
02:02.680 --> 02:05.240
see that it's using an internal number of 4.

48
02:05.240 --> 02:06.800
And also, apparently, the other VLANs

49
02:06.800 --> 02:08.760
aren't actually running on that link.

50
02:08.760 --> 02:09.400
But that's fine.

51
02:09.400 --> 02:11.880
We'll not worry too much about that here.

52
02:11.880 --> 02:13.560
Focus is on VLAN 1.

53
02:13.560 --> 02:16.200
So we have the priority value.

54
02:16.200 --> 02:17.040
We have the number.

55
02:17.040 --> 02:20.440
And we do see why gig 02 is favored

56
02:20.440 --> 02:24.880
because gig 02 has a lower number, number 3, internally,

57
02:24.880 --> 02:27.800
compared to gig 03, which is number 4.

58
02:27.800 --> 02:30.640
And fortunately, we can look at gig 03 and gig 02
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

58
02:27.800 --> 02:30.640
And fortunately, we can look at gig 03 and gig 02

59
02:30.640 --> 02:32.920
and tell which one is higher and which one is lower.

60
02:32.920 --> 02:34.840
But if there's ever a question, this command

61
02:34.840 --> 02:38.400
will tell us exactly what it's using.

62
02:38.400 --> 02:41.640
We could also just do a normal show spanning tree command.

63
02:41.640 --> 02:43.800
And that information shows up right here.

64
02:43.800 --> 02:46.920
In fact, we can directly compare multiple interfaces

65
02:46.920 --> 02:52.160
using this command to see the relative port numbers.

66
02:52.160 --> 02:53.760
But now, let's say we want to flip it,

67
02:53.760 --> 02:56.020
and we want to flip it without changing switch

68
02:56.020 --> 02:57.160
4's configuration.

69
02:57.160 --> 02:59.480
I have to change switch 2's configuration.

70
02:59.480 --> 03:00.720
What do I do here?
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

70
02:59.480 --> 03:00.720
What do I do here?

71
03:00.720 --> 03:04.960
Well, in order to switch which port is being blocked,

72
03:04.960 --> 03:07.160
I'm going to have to get on here.

73
03:07.160 --> 03:11.680
And again, we have port priorities of 128 and 128.

74
03:11.680 --> 03:14.680
And I want to make it so that this side gets blocked,

75
03:14.680 --> 03:17.800
which means this has to have a higher number relative

76
03:17.800 --> 03:19.080
to the other side.

77
03:19.080 --> 03:22.120
So I could lower the priority on gig 03.

78
03:22.120 --> 03:24.560
I could raise the priority on gig 02.

79
03:24.560 --> 03:26.440
Either way is an option.

80
03:26.440 --> 03:30.480
Let's just go ahead and we'll just raise it on gig 02.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

80
03:26.440 --> 03:30.480
Let's just go ahead and we'll just raise it on gig 02.

81
03:30.480 --> 03:35.160
So I'm going to say config T here, interface gig 02,

82
03:35.160 --> 03:35.920
and spanning tree.

83
03:35.920 --> 03:38.120
Again, I can do a VLAN 1 here if I want to.

84
03:38.120 --> 03:40.400
I could just do it for all the VLANs.

85
03:40.400 --> 03:41.600
And then when I run a question mark,

86
03:41.600 --> 03:44.640
we just ran cost in the previous lab video.

87
03:44.640 --> 03:46.680
Now I'm going to change the port priority.

88
03:46.680 --> 03:49.920
And I see that it's between 0 and 240.

89
03:49.920 --> 03:53.520
And yes, technically we say it's between 0 and 255

90
03:53.520 --> 03:54.920
because it's an 8-bit number.

91
03:54.920 --> 03:57.280
But Cisco mandates increments of 16.

92
03:57.280 --> 03:59.800
And so I can't call it all the way up to 256.

93
03:59.800 --> 04:02.480
So 240 is the highest number I can go with.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

93
03:59.800 --> 04:02.480
So 240 is the highest number I can go with.

94
04:02.480 --> 04:04.280
Let's just do something in the middle.

95
04:04.280 --> 04:05.280
I'll say 160.

96
04:05.280 --> 04:07.200
That's a multiple of 16.

97
04:07.200 --> 04:10.680
And so I have now raised the number, which makes it worse

98
04:10.680 --> 04:11.920
on gig 02.

99
04:11.920 --> 04:14.280
So gig 02 should no longer be favored.

100
04:14.280 --> 04:18.440
Now, switch 2 is not going to block either port.

101
04:18.440 --> 04:22.040
If I do a show spanning tree for VLAN 1 here,

102
04:22.040 --> 04:23.840
it's still forwarding.

103
04:23.840 --> 04:28.360
But we do see now that gig 02 has a priority of 160.

104
04:28.360 --> 04:32.960
And so if I go to switch 4 and I run the exact same command,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

104
04:28.360 --> 04:32.960
And so if I go to switch 4 and I run the exact same command,

105
04:32.960 --> 04:34.440
show spanning tree blocked ports,

106
04:34.440 --> 04:37.120
we do see that we have blocked gig 03, which

107
04:37.120 --> 04:39.360
is exactly what we set out to do.

108
04:39.360 --> 04:42.200
So as we keep saying, keep in mind that port priority

109
04:42.200 --> 04:44.800
is for outbound changes to the blocked ports.

110
04:44.800 --> 04:46.920
Cost is for inbound changes.

111
04:46.920 --> 04:49.280
We can leverage either one in this scenario.

112
04:49.280 --> 04:51.560
But if we're ever told, hey, this configuration

113
04:51.560 --> 04:54.160
has to be done on one of these switches or the other,

114
04:54.160 --> 04:56.320
we're going to have to pick the right method

115
04:56.320 --> 05:00.840
and apply it correctly in order to change the blocked interface.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

115
04:56.320 --> 05:00.840
and apply it correctly in order to change the blocked interface.
