WEBVTT

1
00:00.000 --> 00:05.000
So currently here on router 11, this is the BGP table.

2
00:05.000 --> 00:09.200
And we can see that by doing a show IP BGP.

3
00:09.200 --> 00:12.600
And what I'd like to do is let's focus on this route right here.

4
00:12.600 --> 00:15.200
And this route is being advertised by R22.

5
00:15.200 --> 00:16.600
It's its loopback address.

6
00:16.600 --> 00:18.600
It's being advertised into BGP.

7
00:18.600 --> 00:20.400
And that's how R11 knows about it.

8
00:20.400 --> 00:22.800
It learned about it via R21.

9
00:22.800 --> 00:25.400
It also learned about it from R31.

10
00:25.400 --> 00:27.800
And that's because R21 also advertised down here.

11
00:27.800 --> 00:30.200
And that got advertised here. And that got advertised here.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

11
00:27.800 --> 00:30.200
And that got advertised here. And that got advertised here.

12
00:30.200 --> 00:35.000
And currently R11 has made the decision that it should be using this next top

13
00:35.000 --> 00:38.000
of 23.10.20.21 for the best route.

14
00:38.000 --> 00:40.200
Because the AS path is shorter.

15
00:40.200 --> 00:47.360
So it's basically an AS path of 20 versus 20 and also 40 and also 30 that that

16
00:47.360 --> 00:51.600
route went through before it reached a time of system 10 and R11 in AS 10.

17
00:51.600 --> 00:53.600
However, that's not the only element.

18
00:53.600 --> 00:56.000
The AS path is not the only element that's looked at.

19
00:56.000 --> 00:59.680
We have a few others that are considered first, including Cisco with the

20
00:59.680 --> 01:01.000
highest weight.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

20
00:59.680 --> 01:01.000
highest weight.

21
01:01.000 --> 01:04.920
So for example, for that one route, the 22 network has its being advertised

22
01:04.920 --> 01:05.200
here.

23
01:05.200 --> 01:10.600
If R11 believes that the weight coming in from R31, that the weight is 150.

24
01:10.600 --> 01:11.800
I'll put the W there.

25
01:11.800 --> 01:16.800
And it believes that the weight for that same route coming in from R21 is 100.

26
01:16.800 --> 01:18.200
Weight is the first thing considered.

27
01:18.200 --> 01:23.350
And as a result, R11 would choose to use the route coming in from R31 as the

28
01:23.350 --> 01:24.000
best.

29
01:24.000 --> 01:27.000
And it would not use the route coming in from R21 as the best.

30
01:27.000 --> 01:31.400
So currently, the route coming in from R21 is the best route as indicated right
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

30
01:27.000 --> 01:31.400
So currently, the route coming in from R21 is the best route as indicated right

31
01:31.400 --> 01:32.000
there.

32
01:32.000 --> 01:36.120
Then following that, there's local preference, which really applies to internal

33
01:36.120 --> 01:38.000
routes within an autonomous system.

34
01:38.000 --> 01:41.000
And then there's looking for the next top of 0, 0, 0, 0, 0.

35
01:41.000 --> 01:44.000
And then finally, we have the AS path as a consideration.

36
01:44.000 --> 01:48.800
So as a demonstration of this currently on R11, the best path is using the next

37
01:48.800 --> 01:53.400
top of 23.10.20.21, which is the route coming in from R21.

38
01:53.400 --> 01:57.460
And the reason that one was because all other things being equal, the AS path

39
01:57.460 --> 01:59.200
was shorter for that route.

40
01:59.200 --> 02:04.400
However, if we were to train R11 that the route's coming in from R31,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

40
01:59.200 --> 02:04.400
However, if we were to train R11 that the route's coming in from R31,

41
02:04.400 --> 02:08.200
should have a weight of 150, that Cisco weight would be checked first.

42
02:08.200 --> 02:12.120
And as a result, the route would change its mind regarding which is the best

43
02:12.120 --> 02:12.400
path.

44
02:12.400 --> 02:15.880
And we'd start to think that the path going through R31 with the next hop of .

45
02:15.880 --> 02:17.800
31 would be the preferred path.

46
02:17.800 --> 02:21.000
So with that in mind, let me walk you through a quick example.

47
02:21.000 --> 02:25.350
So to do that here on R11, let's just do a quick show IPBGP to make sure

48
02:25.350 --> 02:26.000
nothing changed.

49
02:26.000 --> 02:28.000
And sure enough, there's our route to 22.

50
02:28.000 --> 02:29.400
It's considered the best.

51
02:29.400 --> 02:32.800
And the next top is 23.10.20.21, which is R21.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

51
02:29.400 --> 02:32.800
And the next top is 23.10.20.21, which is R21.

52
02:32.800 --> 02:36.800
So here on R11, let's go ahead and see if there's any route maps.

53
02:36.800 --> 02:38.200
Let's do a show route map.

54
02:38.200 --> 02:39.800
And there aren't any, so let's create one.

55
02:39.800 --> 02:41.800
I'm going to create a route map that does one thing.

56
02:41.800 --> 02:43.400
It's going to set the weight.

57
02:43.400 --> 02:44.800
So let's create route map.

58
02:44.800 --> 02:48.800
And let's call it set_weight in uppercase, space,

59
02:48.800 --> 02:51.600
and we'll do a permit and sequence number 10.

60
02:51.600 --> 02:54.400
And then we'll do a set_weight and let's see what our values are here.

61
02:54.400 --> 02:55.400
How about 673?

62
02:55.400 --> 02:57.000
That's a pretty unique weight.

63
02:57.000 --> 03:00.710
And then what we'll do is we'll take this route map and we'll apply it to our
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

63
02:57.000 --> 03:00.710
And then what we'll do is we'll take this route map and we'll apply it to our

64
03:00.710 --> 03:02.600
neighbor R31.

65
03:02.600 --> 03:06.600
So R31 and our topology is down in a Thomas system 30.

66
03:06.600 --> 03:10.600
So we'll train R11 that, hey, any routes you get from your good buddy R31,

67
03:10.600 --> 03:13.400
just set the weight to 673.

68
03:13.400 --> 03:17.120
And currently, if we look at the current weight, which is still on the screen

69
03:17.120 --> 03:17.400
here,

70
03:17.400 --> 03:21.930
the current weight for the 22 routes and all the routes actually is set to zero

71
03:21.930 --> 03:22.200
.

72
03:22.200 --> 03:26.800
So 673 is going to be a lot higher than zero.

73
03:26.800 --> 03:29.800
So let's do a do showrun, section BGP.

74
03:29.800 --> 03:31.600
They are several little bit of typing.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

74
03:29.800 --> 03:31.600
They are several little bit of typing.

75
03:31.600 --> 03:34.800
And then we'll go into router BGP, a Thomas system 10.

76
03:34.800 --> 03:38.600
And then we'll go to our neighbor statement here for our neighbor at dot 31,

77
03:38.600 --> 03:39.800
which is R31.

78
03:39.800 --> 03:41.200
I'll copy paste that.

79
03:41.200 --> 03:44.200
And all I'm going to do is add an additional parameter that says,

80
03:44.200 --> 03:48.850
you know what, for routes that we receive in from this neighbor, let's go ahead

81
03:48.850 --> 03:49.200
and

82
03:49.200 --> 03:51.200
apply the route map that we just made.

83
03:51.200 --> 03:53.200
So I'll type in route map space.

84
03:53.200 --> 03:55.400
Then I do a copy paste of the name that way.

85
03:55.400 --> 03:56.400
Don't get a typo.

86
03:56.400 --> 03:58.000
So it's called set weight.

87
03:58.000 --> 03:59.600
I'm going to go ahead and copy and paste that.

88
03:59.600 --> 04:03.400
So that's done space and a question mark and in.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

88
03:59.600 --> 04:03.400
So that's done space and a question mark and in.

89
04:03.400 --> 04:07.000
So effectively, any routes coming in from that neighbor,

90
04:07.000 --> 04:12.000
we are going to go ahead and set the weight to 673 based on the route map.

91
04:12.000 --> 04:14.600
So again, the route map, do a do show route map.

92
04:14.600 --> 04:16.600
It's going to set the weight to 673.

93
04:16.600 --> 04:18.200
So we'll get out configuration mode.

94
04:18.200 --> 04:21.200
And just to make sure it's a nice fair shake across the board,

95
04:21.200 --> 04:23.800
again, in production, you don't want to do this because it's going to be

96
04:23.800 --> 04:24.200
devastating.

97
04:24.200 --> 04:25.800
But I'm going to go to all routers.

98
04:25.800 --> 04:31.000
So I'm going to do a clear IP BGP asterisk and select all the routers.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

98
04:25.800 --> 04:31.000
So I'm going to do a clear IP BGP asterisk and select all the routers.

99
04:31.000 --> 04:33.000
And click here on sends script.

100
04:33.000 --> 04:37.800
And that's going to reset every possible BGP neighbor adjacency.

101
04:37.800 --> 04:41.800
And that's also going to force us to have new information for updated routes.

102
04:41.800 --> 04:45.600
So let's go ahead here on our 11 to show IP BGP summary.

103
04:45.600 --> 04:48.400
So currently we have our internal BGP pairing set up.

104
04:48.400 --> 04:49.400
That's these two.

105
04:49.400 --> 04:53.600
We also have our external ones to router 21 in a ton of system 20.

106
04:53.600 --> 04:57.000
And also to our 31, which is an autonomous system 30.

107
04:57.000 --> 05:00.000
And currently we have not received any prefixes yet.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

108
05:00.000 --> 05:02.000
But that's because BGP takes a minute.

109
05:02.000 --> 05:03.800
So we'll do a show IP BGP summary.

110
05:03.800 --> 05:06.200
And we're going to give it at least a minute.

111
05:06.200 --> 05:09.200
And after a few moments, we should see those routes pouring in.

112
05:09.200 --> 05:12.000
So go ahead and do a show IP BGP summary.

113
05:12.000 --> 05:12.500
There we go.

114
05:12.500 --> 05:14.800
We got one from our 12th.

115
05:14.800 --> 05:18.400
And we have one from our 21.

116
05:18.400 --> 05:20.200
And a pit there for a key again.

117
05:20.200 --> 05:21.600
We should have more in just a moment.

118
05:21.600 --> 05:26.200
But you also a show IP BGP center that shows the rib.

119
05:26.200 --> 05:29.200
So those are the two routes that we currently see here.

120
05:29.200 --> 05:31.800
And we'll give it another moment or two to fully converge.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

120
05:29.200 --> 05:31.800
And we'll give it another moment or two to fully converge.

121
05:31.800 --> 05:34.600
Also while we're waiting, let's talk about this little r there.

122
05:34.600 --> 05:36.800
So we look at r in the legend.

123
05:36.800 --> 05:38.600
That's for a rib failure.

124
05:38.600 --> 05:42.400
This simply means that hey, for this route, 12, 12, 12, 12,

125
05:42.400 --> 05:45.300
it was learned a different way that has a better AD.

126
05:45.300 --> 05:48.900
So the AD for IBGP learned routes is 200.

127
05:48.900 --> 05:52.600
And this network is being advertised just in a ton of system 10

128
05:52.600 --> 05:55.700
with OSPF, which is an AD of 110.

129
05:55.700 --> 05:58.900
So we did a show IP route press enter.

130
05:58.900 --> 06:00.500
And we look for that 12, 12, 12 network.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

130
05:58.900 --> 06:00.500
And we look for that 12, 12, 12 network.

131
06:00.500 --> 06:01.500
There it is right there.

132
06:01.500 --> 06:05.600
And that's why we did a show IP BGP has a little r there in front of it,

133
06:05.600 --> 06:09.400
indicating that the BGP route, even though it's the best one in the BGP table,

134
06:09.400 --> 06:12.000
is not the best one in the routing table on the router.

135
06:12.000 --> 06:15.600
And I only have one route so far for the 22, 22 network.

136
06:15.600 --> 06:18.700
So let's give it just a few more moments to fully converge.

137
06:18.700 --> 06:22.800
So for this entry, which is for the 32 network, it has a weight coming in from

138
06:22.800 --> 06:22.900
our

139
06:22.900 --> 06:26.400
good buddy r 31 of 678, 3 fantastic.

140
06:26.400 --> 06:32.150
And also for this one, but I'm still waiting on the route for 22, 22, 22, 22 to
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

140
06:26.400 --> 06:32.150
And also for this one, but I'm still waiting on the route for 22, 22, 22, 22 to

141
06:32.150 --> 06:32.800
come in.

142
06:32.800 --> 06:36.100
And once we see that because it also have a heavier weight, our 31 should be

143
06:36.100 --> 06:36.800
the preferred

144
06:36.800 --> 06:37.800
next hop.

145
06:37.800 --> 06:38.800
So we'll go ahead and hit the upper key.

146
06:38.800 --> 06:40.800
And I don't see that second route coming in.

147
06:40.800 --> 06:43.000
Let's go back to r 11 and give it a few more moments.

148
06:43.000 --> 06:46.400
So here at r 11, let's do a show IP BGP.

149
06:46.400 --> 06:47.400
I still don't see it.

150
06:47.400 --> 06:50.900
Let me go ahead and do one more clear here clear IP BGP.

151
06:50.900 --> 06:53.200
Asterisk just from r 11.

152
06:53.200 --> 06:56.000
So we'll do a show IP BGP summary.

153
06:56.000 --> 06:56.500
All right.

154
06:56.500 --> 07:01.400
So now it shows three routes being learned from dot 21 and three from dot 31.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

154
06:56.500 --> 07:01.400
So now it shows three routes being learned from dot 21 and three from dot 31.

155
07:01.400 --> 07:02.400
That's much better.

156
07:02.400 --> 07:05.200
So now I'm not sure if it's just didn't wait long enough.

157
07:05.200 --> 07:08.360
But this was show IP BGP press center.

158
07:08.360 --> 07:10.460
So it's currently we look right here.

159
07:10.460 --> 07:13.400
It doesn't have any of them marked as the best.

160
07:13.400 --> 07:17.240
The greater than symbol isn't there for any of them, but we do have two routes

161
07:17.240 --> 07:17.600
for the

162
07:17.600 --> 07:18.600
22, 22 network.

163
07:18.600 --> 07:23.570
And you'll notice the one with the next top of 23 that 10 dot 30 dot 31 has the

164
07:23.570 --> 07:24.040
weight

165
07:24.040 --> 07:25.440
of 678, 3.

166
07:25.440 --> 07:28.360
So in just a moment, when it's done making its calculations, we hit the upper

167
07:28.360 --> 07:28.520
key

168
07:28.520 --> 07:32.240
again, it should show that as the best route, which it does.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

168
07:28.520 --> 07:32.240
again, it should show that as the best route, which it does.

169
07:32.240 --> 07:36.720
So this is the next top for the 22 22, 22 network and check this out.

170
07:36.720 --> 07:43.180
Even though the AS path is longer than the AS path with the next top of R 21,

171
07:43.180 --> 07:43.360
even though

172
07:43.360 --> 07:47.030
it's longer here, because the Cisco router checked weight first as its first

173
07:47.030 --> 07:47.880
consideration

174
07:47.880 --> 07:51.480
and determining the best path, that's why it has that one put in the routing

175
07:51.480 --> 07:52.000
table.

176
07:52.000 --> 07:55.290
So now if we look at the show IP route for BGP learned routes, it's going to

177
07:55.290 --> 07:55.640
show in

178
07:55.640 --> 08:00.690
the routing table that the next top is 23 dot 10 dot 30 dot 31 for that 22
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

178
07:55.640 --> 08:00.690
the routing table that the next top is 23 dot 10 dot 30 dot 31 for that 22

179
08:00.690 --> 08:01.440
network.

180
08:01.440 --> 08:06.440
And to verify that, we can do a show IP route and it was hit space.

181
08:06.440 --> 08:09.820
We could also filter that to BGP learned routes, but there's our BGP learned

182
08:09.820 --> 08:10.400
route and

183
08:10.400 --> 08:13.560
there's the next top of 23 dot 10 dot 30 dot 31.

184
08:13.560 --> 08:17.400
And the reason we did that is just want to reinforce the concept of the pecking

185
08:17.400 --> 08:17.720
order

186
08:17.720 --> 08:22.280
when a router is making a decision, we're getting which route is the best.

187
08:22.280 --> 08:26.030
So again, in this case, the weight was considered before the AS path and that's

188
08:26.030 --> 08:26.960
why 6, 7, 8,

189
08:26.960 --> 08:28.320
3, 1 over 0.

190
08:28.320 --> 08:31.430
And it didn't even bother getting to this portion regarding the number of
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

190
08:28.320 --> 08:31.430
And it didn't even bother getting to this portion regarding the number of

191
08:31.430 --> 08:32.400
autonomous systems

192
08:32.400 --> 08:33.400
in the path.

193
08:33.400 --> 08:36.260
Because that's several lower in the pecking order when the router is choosing

194
08:36.260 --> 08:37.080
the best path

195
08:37.080 --> 08:38.720
and placing it in a routing table.

196
08:38.720 --> 08:42.480
Now to verify this, we'd want to go ahead and do a ping from a loopback on

197
08:42.480 --> 08:43.560
either R12

198
08:43.560 --> 08:47.200
or R22, etc. to one of those destination addresses.

199
08:47.200 --> 08:51.720
So let's go to R12 because it has a loopback that's being advertised in BGP.

200
08:51.720 --> 08:55.480
And let's ping 22 22 22, which is R22.

201
08:55.480 --> 09:00.320
So we'll go to R12 and let's do a ping to 22, etc.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

201
08:55.480 --> 09:00.320
So we'll go to R12 and let's do a ping to 22, etc.

202
09:00.320 --> 09:03.040
And we'll source that from our loopback zero and that works.

203
09:03.040 --> 09:06.990
And if you do a trace, it should be taking the long way because of how we

204
09:06.990 --> 09:08.240
manipulate a BGP.

205
09:08.240 --> 09:15.610
So that traffic should go from R11 down to R31 to R41 to R42 to R21 and then

206
09:15.610 --> 09:16.560
finding to

207
09:16.560 --> 09:17.560
R22.

208
09:17.560 --> 09:21.580
So we'll do a trace route to 22 dot 22 dot 22 dot 22 and we'll source that from

209
09:21.580 --> 09:23.580
loopback zero press center.

210
09:23.580 --> 09:26.580
So there's the path based on that last octet that's R11, R31.

211
09:26.580 --> 09:30.420
In fact, let me bring up the topology while we talk about that.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

211
09:26.580 --> 09:30.420
In fact, let me bring up the topology while we talk about that.

212
09:30.420 --> 09:36.180
So the path would be from R12 to R11, which is an AS10 and then over to R31,

213
09:36.180 --> 09:36.860
which is an

214
09:36.860 --> 09:43.140
AS30 and then over to R41, which is in AS40 and then to the other router in AS

215
09:43.140 --> 09:43.860
40, which

216
09:43.860 --> 09:49.060
is R42 and then up to R21, which is an AS20.

217
09:49.060 --> 09:52.220
And then over to R22 who own that loopback address and that's the path we have

218
09:52.220 --> 09:52.800
through the

219
09:52.800 --> 09:53.800
network.

220
09:53.800 --> 09:59.240
So in this video, we've had the opportunity to see BGP at work, including IBGP

221
09:59.240 --> 10:00.300
and external
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

221
09:59.240 --> 10:00.300
and external

222
10:00.300 --> 10:04.020
BGP, as well as how to advertise a route in BGP.

223
10:04.020 --> 10:07.800
We also took a look at playing with the weight value just to see that indeed it

224
10:07.800 --> 10:08.900
does determine

225
10:08.900 --> 10:11.540
which route is considered the best by a router.

226
10:11.540 --> 10:15.620
Now watching all this is well and good, but it's not nearly as good as if you

227
10:15.620 --> 10:16.180
were able

228
10:16.180 --> 10:20.460
to have a chance to practice yourself, which is exactly what I've designed for

229
10:20.460 --> 10:20.900
you in the

230
10:20.900 --> 10:25.340
next video is to present a hands-on lab so you can get some practice in config

231
10:25.340 --> 10:25.940
uring and

232
10:25.940 --> 10:27.540
working with BGP.

233
10:27.540 --> 10:30.180
So I'll see you in the next video for that hands-on lab.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

233
10:27.540 --> 10:30.180
So I'll see you in the next video for that hands-on lab.
