1
00:00:02,520 --> 00:00:05,437
(electronic sound)

2
00:00:09,240 --> 00:00:10,632
- [Instructor] So here we are in Part 4,

3
00:00:10,632 --> 00:00:12,216
which will be the last section.

4
00:00:12,216 --> 00:00:15,288
of this CCNA Switching
Lab that we've built.

5
00:00:15,288 --> 00:00:18,136
And now we're gonna modify
some Spanning-Tree parameters.

6
00:00:18,136 --> 00:00:21,144
Because, as we talked about
at the end of the last video,

7
00:00:21,144 --> 00:00:23,224
currently with the way Spanning-Tree is,

8
00:00:23,224 --> 00:00:24,856
is that everything being sent from

9
00:00:24,856 --> 00:00:27,432
Router 1 across these switches,

10
00:00:27,432 --> 00:00:30,312
is going across our lowest
numbered interfaces,

11
00:00:30,312 --> 00:00:33,240
1/9, but the objective said that

12
00:00:33,240 --> 00:00:35,384
it should be taking this path.

13
00:00:35,384 --> 00:00:38,632
So, what are we gonna do to fix that?

14
00:00:38,632 --> 00:00:40,840
Alright, well step
number one is, we have to

15
00:00:40,840 --> 00:00:44,024
identify who is the root
bridge in this particular case.

16
00:00:44,024 --> 00:00:46,136
Well just by looking at this, hopefully

17
00:00:46,136 --> 00:00:48,056
you can answer that question.

18
00:00:48,056 --> 00:00:51,672
Only the root bridge would
have all of his ports

19
00:00:51,672 --> 00:00:53,304
in the forwarding state,
well that's actually

20
00:00:53,304 --> 00:00:54,712
not technically true, but in this

21
00:00:54,712 --> 00:00:57,848
particular case that's the
case, how do we verify that?

22
00:00:57,848 --> 00:01:01,348
Well, let's go onto Ether Switch Router 1.

23
00:01:04,744 --> 00:01:08,577
And we can do the "sho
spanning-tree" command.

24
00:01:09,416 --> 00:01:11,256
Now if this was a real
switch you'd have to do

25
00:01:11,256 --> 00:01:15,064
"sho spanning-tree" and
then type a vlan number,

26
00:01:15,064 --> 00:01:16,280
so let's go ahead and do that.

27
00:01:16,280 --> 00:01:18,780
Sho spanning-tree for vlan 4.

28
00:01:22,248 --> 00:01:23,784
And right here it says, "we are

29
00:01:23,784 --> 00:01:26,968
"the root of the spanning tree".

30
00:01:26,968 --> 00:01:31,135
And if we do that for vlan
5, it'll be exactly the same:

31
00:01:32,216 --> 00:01:35,368
"we are the root of the spanning tree".

32
00:01:35,368 --> 00:01:37,688
Now when it comes to vlan load balancing,

33
00:01:37,688 --> 00:01:39,912
the first thing you should look at is,

34
00:01:39,912 --> 00:01:42,424
if I move my root bridge around,

35
00:01:42,424 --> 00:01:45,000
could I possibly get what I wanna get?

36
00:01:45,000 --> 00:01:46,888
Could I meet my objective simply by

37
00:01:46,888 --> 00:01:49,240
moving the root bridge around?

38
00:01:49,240 --> 00:01:52,680
In this particular case,
that's not gonna help us.

39
00:01:52,680 --> 00:01:56,328
Because if I made the switch on the bottom

40
00:01:56,328 --> 00:02:00,495
the root bridge, let's just
say theoretically I did that.

41
00:02:02,104 --> 00:02:06,648
And let's just say I did
it for, now I think it said

42
00:02:06,648 --> 00:02:08,600
the lab objectives here
did not really specify

43
00:02:08,600 --> 00:02:10,072
which vlan we're talking about, so let's

44
00:02:10,072 --> 00:02:12,408
say I made him the root
bridge for everything.

45
00:02:12,408 --> 00:02:15,048
Well all that would do
is what we would see is

46
00:02:15,048 --> 00:02:18,840
now all of his ports would go forwarding,

47
00:02:18,840 --> 00:02:20,824
because the root bridge,
every port is forwarding

48
00:02:20,824 --> 00:02:24,991
as a designated port, and
then the switch on the top,

49
00:02:26,296 --> 00:02:28,648
he would end up saying,
"well I'm gonna go ahead

50
00:02:28,648 --> 00:02:31,768
"and go forwarding on
my lowest numbered port

51
00:02:31,768 --> 00:02:34,056
"and I'm gonna go blocking on this port".

52
00:02:34,056 --> 00:02:36,280
Not gonna go into the
details of why, if you're

53
00:02:36,280 --> 00:02:38,712
not sure of how that
happens, please look at my

54
00:02:38,712 --> 00:02:41,656
CCNE video series on routing and switching

55
00:02:41,656 --> 00:02:44,552
where I go into gory
details on spanning tree.

56
00:02:44,552 --> 00:02:48,280
So moving the root bridge
around, eh, not gonna help us.

57
00:02:48,280 --> 00:02:49,912
So might as well get rid of that.

58
00:02:49,912 --> 00:02:52,664
Let's go back to where we were.

59
00:02:52,664 --> 00:02:57,272
Alright, so ultimately,
here's what we need to do.

60
00:02:57,272 --> 00:03:00,408
We need to somehow trick
Ether Switch Router 2.

61
00:03:00,408 --> 00:03:02,936
We need to make him believe that this

62
00:03:02,936 --> 00:03:05,624
interface here should be his root port.

63
00:03:05,624 --> 00:03:08,936
We want him to select
this as the root port,

64
00:03:08,936 --> 00:03:10,776
so that he'll go forwarding, so

65
00:03:10,776 --> 00:03:12,872
how do we make him believe that?

66
00:03:12,872 --> 00:03:17,039
Well, we actually have two
ways that we can do it.

67
00:03:18,648 --> 00:03:21,496
Number one, remember that
spanning tree ultimately

68
00:03:21,496 --> 00:03:24,120
relies on cost to figure out the best

69
00:03:24,120 --> 00:03:27,656
path through a network,
so one thing we could do

70
00:03:27,656 --> 00:03:29,784
is we could go onto his
interface and tell him,

71
00:03:29,784 --> 00:03:32,968
"Hey, the spanning tree
cost of this interface

72
00:03:32,968 --> 00:03:37,135
"is less than the spanning
tree cost of 1/9."

73
00:03:38,056 --> 00:03:39,976
That's one thing we could do.

74
00:03:39,976 --> 00:03:42,760
Alternatively, we could
leave the cost alone

75
00:03:42,760 --> 00:03:45,480
because right now they're
exactly identical,

76
00:03:45,480 --> 00:03:47,352
because when the cost is identical,

77
00:03:47,352 --> 00:03:50,136
what ultimately ended
up causing this scenario

78
00:03:50,136 --> 00:03:53,553
was the port priority, the port priority.

79
00:03:55,960 --> 00:03:58,888
You see, in this particular case,

80
00:03:58,888 --> 00:04:01,888
when BPDUs came downstream this way,

81
00:04:04,216 --> 00:04:06,968
both those BPDUs had the same bridge ID,

82
00:04:06,968 --> 00:04:09,768
because they both came
from the same bridge.

83
00:04:09,768 --> 00:04:12,952
They both had the same
cost, which was zero,

84
00:04:12,952 --> 00:04:15,512
because they were coming
from the root bridge.

85
00:04:15,512 --> 00:04:17,752
The only thing that was
different about them

86
00:04:17,752 --> 00:04:20,008
was that the port IDs were different.

87
00:04:20,008 --> 00:04:21,848
Now remember, port ID and spanning tree is

88
00:04:21,848 --> 00:04:24,360
a two-part field: you have a port priority

89
00:04:24,360 --> 00:04:27,832
and a port ID, a port identifier.

90
00:04:27,832 --> 00:04:31,880
Well by default, the port
priority is the same.

91
00:04:31,880 --> 00:04:34,120
It doesn't matter. It's always the same.

92
00:04:34,120 --> 00:04:35,896
So if the port priority is the same,

93
00:04:35,896 --> 00:04:37,944
the only thing that made these unique

94
00:04:37,944 --> 00:04:41,288
were the port numbers, and 1/9, as a

95
00:04:41,288 --> 00:04:45,064
lower number than 1/15, was preferred.

96
00:04:45,064 --> 00:04:47,240
Now you can't change the port number,

97
00:04:47,240 --> 00:04:50,392
but you can change the port priority.

98
00:04:50,392 --> 00:04:53,368
So let's do both, let's go
ahead and modify the cost,

99
00:04:53,368 --> 00:04:55,016
and then we'll set it back to default,

100
00:04:55,016 --> 00:04:56,408
and then we'll modify the port priority.

101
00:04:56,408 --> 00:04:59,000
So if I wanna modify the cost,
I'm gonna wanna modify the

102
00:04:59,000 --> 00:05:03,167
cost on this port right
here, 1/15 on Ether Switch 2.

103
00:05:06,872 --> 00:05:10,539
Alright, so let's get
out of Ether Switch 1.

104
00:05:12,504 --> 00:05:15,896
Go over here to Ether Switch 2.

105
00:05:15,896 --> 00:05:20,312
Let's go into interface
fast ethernet 1/15,

106
00:05:20,312 --> 00:05:24,479
spanning-tree, vlan 4, and now
we're gonna wanna say cost,

107
00:05:27,512 --> 00:05:30,984
and, well what's the cost right now?

108
00:05:30,984 --> 00:05:33,256
Well you should know
for the CCNA, the cost

109
00:05:33,256 --> 00:05:36,952
of a fast ethernet link is always 19.

110
00:05:36,952 --> 00:05:39,592
If you're using regular 802.1D,

111
00:05:39,592 --> 00:05:42,344
that's the default port cost.

112
00:05:42,344 --> 00:05:46,511
So let's do spanning-tree,
vlan 4, cost, how about 18.

113
00:05:50,856 --> 00:05:54,856
And let's do that same
thing for vlan 5 as well.

114
00:05:58,936 --> 00:06:02,103
And now when we do show spanning tree,

115
00:06:03,416 --> 00:06:07,816
for vlan 4, remember,
who are we on right now?

116
00:06:07,816 --> 00:06:09,720
We're on the bottom switch right here.

117
00:06:09,720 --> 00:06:11,544
And what did it look like previously?

118
00:06:11,544 --> 00:06:14,984
Previously 1/15 was in the blocking state,

119
00:06:14,984 --> 00:06:17,416
but now what we've done, is we've said,

120
00:06:17,416 --> 00:06:19,784
okay, your cost to get to the root bridge

121
00:06:19,784 --> 00:06:23,816
on 1/9 is 19, 'cause it's fast ethernet,

122
00:06:23,816 --> 00:06:25,640
But your cost to get it to the root bridge

123
00:06:25,640 --> 00:06:28,808
over here is 18, we lowered it.

124
00:06:28,808 --> 00:06:31,416
So now ultimately we
should see these two swap.

125
00:06:31,416 --> 00:06:34,680
We should see 1/9 go
into the blocking state,

126
00:06:34,680 --> 00:06:38,847
and we should see 1/15 go
into the forwarding state.

127
00:06:44,744 --> 00:06:47,896
And there we go, 1/9
for vlan 4 is blocking,

128
00:06:47,896 --> 00:06:50,856
1/15 for vlan 4 is forwarding.

129
00:06:50,856 --> 00:06:53,256
And we'll see the exact
same output for vlan 5,

130
00:06:53,256 --> 00:06:57,256
because we modified the
cost for vlan 5 as well.

131
00:06:58,232 --> 00:07:02,399
1/9's blocking, 1/15 is forwarding.

132
00:07:06,936 --> 00:07:10,840
So if I scroll down here, you'll see that

133
00:07:10,840 --> 00:07:13,240
on 1/9 we didn't do anything, we left it

134
00:07:13,240 --> 00:07:17,368
to its defaults, but on the
interface going upstream,

135
00:07:17,368 --> 00:07:21,535
to the root bridge, we
modified the cost on 1/15.

136
00:07:22,376 --> 00:07:23,496
So that was one way that you could

137
00:07:23,496 --> 00:07:27,163
accomplish this objective,
the other way was

138
00:07:28,072 --> 00:07:32,239
to leave cost alone, so let's
go ahead and take this out.

139
00:07:38,200 --> 00:07:40,088
The other way was to go
to the upstream switch

140
00:07:40,088 --> 00:07:43,755
that's sending you the
BPDUs, and modify his

141
00:07:48,504 --> 00:07:52,254
port priority, so let's
go to Ether Switch 1,

142
00:07:54,680 --> 00:07:57,592
interface fast ethernet
zero slash, actually before

143
00:07:57,592 --> 00:08:00,842
we go there, show spanning-tree vlan 4.

144
00:08:07,704 --> 00:08:09,832
And we can see here, that they both have

145
00:08:09,832 --> 00:08:13,400
the exact same port priority of 128.

146
00:08:13,400 --> 00:08:15,592
That's our default port priority.

147
00:08:15,592 --> 00:08:16,616
So now what we're gonna do is we're

148
00:08:16,616 --> 00:08:19,352
gonna lower his port priority to 127,

149
00:08:19,352 --> 00:08:22,552
which will make the guy
downstream from him,

150
00:08:22,552 --> 00:08:26,719
which is Ether Switch 2,
prefer fast ethernet 1/15.

151
00:08:31,400 --> 00:08:34,264
Spanning-tree, and I'll
just do, I'll just do it

152
00:08:34,264 --> 00:08:37,128
for everything, I'm not gonna specify

153
00:08:37,128 --> 00:08:39,752
any particular vlan, although I could.

154
00:08:39,752 --> 00:08:44,104
Port priority 127, ah,
but we have to do it

155
00:08:44,104 --> 00:08:47,437
in increments of eight, so we'll do 120.

156
00:08:52,168 --> 00:08:56,085
So now what's happening,
is we're back to this,

157
00:08:57,640 --> 00:09:01,057
where on the bottom switch we have 19 19,

158
00:09:01,896 --> 00:09:05,800
but the BPs are coming
down from Ether Switch 1,

159
00:09:05,800 --> 00:09:09,112
this one has a port priority of 128,

160
00:09:09,112 --> 00:09:11,352
this one has a port priority of 127,

161
00:09:11,352 --> 00:09:15,544
and remember in spanning
tree, lower is always better.

162
00:09:15,544 --> 00:09:18,472
And so now that will cause Ether Switch 2

163
00:09:18,472 --> 00:09:22,984
to swap out these numbers
and now this will go blocking

164
00:09:22,984 --> 00:09:26,664
and this will go forwarding,
so let's verify that.

165
00:09:26,664 --> 00:09:29,016
Let's go back to Ether
Switch 2 and make sure that

166
00:09:29,016 --> 00:09:32,933
1/15 is now in the forwarding stage.

167
00:09:42,216 --> 00:09:44,344
And there we can see,
the lower number port

168
00:09:44,344 --> 00:09:48,511
is now blocking, the higher
number port is now forwarding.

169
00:09:50,024 --> 00:09:54,107
And that concludes this
CCNA level switching lab.

170
00:09:56,040 --> 00:09:58,957
(electronic sound)

