WEBVTT

1
00:00.000 --> 00:03.720
In the previous video we configured external BGP and we started learning routes

2
00:03.720 --> 00:04.720
coming in from

3
00:04.720 --> 00:10.960
R21 and also routes that were advertised via BGP from R31. So those are both

4
00:10.960 --> 00:12.000
external BGP neighbors

5
00:12.000 --> 00:15.930
of R11. And one of those routes was a loopback that's being advertised over

6
00:15.930 --> 00:17.360
here in AS20 and that's

7
00:17.360 --> 00:24.250
22.22.22. And as that route was advertised by R21, the ASPath attribute simply

8
00:24.250 --> 00:25.600
included ASPath 20,

9
00:25.600 --> 00:29.920
which had gone through and as it was advertised down here, down here and then

10
00:29.920 --> 00:31.440
up to R11 this way.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

10
00:29.920 --> 00:31.440
up to R11 this way.

11
00:31.440 --> 00:35.380
And as that route was advertised up here, the ASPath that included 30 because

12
00:35.380 --> 00:36.720
it had gone through AS30

13
00:36.720 --> 00:42.110
and also gone to AS40 and also gone through AS20 where it was sourced. So R11

14
00:42.110 --> 00:43.520
chose the route that went

15
00:43.520 --> 00:48.880
or to R21 because all other things being equal, ASPath was shorter on the route

16
00:48.880 --> 00:49.200
it learned from

17
00:49.200 --> 00:53.510
R21 compared to the route it learned from R31. And another attribute that

18
00:53.510 --> 00:54.400
shipped over when it

19
00:54.400 --> 00:59.460
routes are advertised is an attribute called Next Top. So in R21, advertised

20
00:59.460 --> 01:00.880
that route for 22, 22,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

20
00:59.460 --> 01:00.880
that route for 22, 22,

21
01:00.880 --> 01:05.390
22, etc. One of the attributes besides the ASPath was Next Top. And so the next

22
01:05.390 --> 01:06.160
top in R21

23
01:06.160 --> 01:11.430
advertised that would be its own IP address. So the next top value would be 23.

24
01:11.430 --> 01:14.080
10.20. And this is 21. So

25
01:14.080 --> 01:18.470
it would be .21. Now that's not a problem for R11 because R11 knows how to get

26
01:18.470 --> 01:19.280
to that Next Top.

27
01:19.280 --> 01:22.330
It's directly connected to that network segment. However, as that route is

28
01:22.330 --> 01:23.840
being advertised inside

29
01:23.840 --> 01:29.730
of the Atom System 10 here and when R12 learns about 22, 22, 22, 22, that Next

30
01:29.730 --> 01:32.400
Top of 23.10.20.21
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

30
01:29.730 --> 01:32.400
Top of 23.10.20.21

31
01:32.400 --> 01:35.670
is carried with it. It doesn't change. So here when that route is being

32
01:35.670 --> 01:37.760
advertised from R11 to R12,

33
01:37.760 --> 01:40.850
it's going to have the ASPath of 20. That's not going to change. It was still

34
01:40.850 --> 01:42.320
sourced from AS20.

35
01:42.320 --> 01:46.450
It's also going to keep the same Next Top information. So it's going to show

36
01:46.450 --> 01:49.680
Next Top of 23.10.20.21.

37
01:49.680 --> 01:52.210
That's this interface address right here. And that's going to cause a problem

38
01:52.210 --> 01:52.720
here in this

39
01:52.720 --> 01:57.920
lab apology because R12 inside the Atom System, it does not have a route for

40
01:57.920 --> 02:00.400
that Next Top of 23.10.20.21.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

40
01:57.920 --> 02:00.400
that Next Top of 23.10.20.21.

41
02:00.400 --> 02:03.380
And as a result, because it doesn't have a route for that, it's going to go

42
02:03.380 --> 02:04.320
ahead and say, "Well,

43
02:04.320 --> 02:08.560
I see the route in BGP and the BGP routing information base, but I'm not going

44
02:08.560 --> 02:08.960
to add it to my

45
02:08.960 --> 02:11.960
routing table because I don't know how to get to the Next Top." So we can

46
02:11.960 --> 02:13.040
verify that by taking a

47
02:13.040 --> 02:18.480
quick look at R12. So here on R12, let's go over to R12 and let's do a show IP

48
02:18.480 --> 02:21.840
BGP. So there's the 22, 22, 22 network.

49
02:21.840 --> 02:25.300
We're missing that symbol, meaning none of these routes are considered best.

50
02:25.300 --> 02:28.560
And there's our Next Top of 23.10.20.21.

51
02:28.560 --> 02:33.430
So one way of addressing this is we could tell R11. You know what? R11, when
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

51
02:28.560 --> 02:33.430
So one way of addressing this is we could tell R11. You know what? R11, when

52
02:33.430 --> 02:34.960
you receive this route from

53
02:34.960 --> 02:39.150
an external BGP neighbor and they have the Next Top, instead of just keeping

54
02:39.150 --> 02:40.640
that same Next Top as you

55
02:40.640 --> 02:45.520
send it into your internal BGP neighbors, go ahead and simply modify that value

56
02:45.520 --> 02:46.960
, that Next Top value,

57
02:46.960 --> 02:50.580
and just say it's your own address. In this case of R11, there'd be 11 to 11 to

58
02:50.580 --> 02:52.080
11 to 11 to 11. And that

59
02:52.080 --> 02:55.390
way when R12 receives it and sees the Next Top is 11, 11, 11, 11, 11, 11, they

60
02:55.390 --> 02:56.240
'll say, "Oh, you know

61
02:56.240 --> 02:59.370
what? I didn't have to reach that." And then it can go ahead and consider that

62
02:59.370 --> 03:00.240
to be a valid route
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

62
02:59.370 --> 03:00.240
to be a valid route

63
03:00.240 --> 03:03.870
that it can put inside its routing table. And by valid route, meaning it's a

64
03:03.870 --> 03:04.800
route that it can use

65
03:04.800 --> 03:08.210
and it would put a little symbol next to it indicating it's the best route. So

66
03:08.210 --> 03:08.800
to implement this,

67
03:08.800 --> 03:12.700
we simply modify the configuration on R11 and just tell it, "Hey, listen, as

68
03:12.700 --> 03:14.240
you forward updated

69
03:14.240 --> 03:18.890
routes to your peers R13 and R12, which are both IBGP peers, go ahead and

70
03:18.890 --> 03:20.640
simply modify the Next Top

71
03:20.640 --> 03:24.050
and make it your own IP address." Instead of the original Next Top value that

72
03:24.050 --> 03:25.280
you receive. Now,

73
03:25.280 --> 03:28.370
that's the only happening when we send it to internal peers. We need to modify

74
03:28.370 --> 03:29.200
that because

75
03:29.200 --> 03:33.450
when we send that route, for example, from R11 to another external BGP neighbor
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

75
03:29.200 --> 03:33.450
when we send that route, for example, from R11 to another external BGP neighbor

76
03:33.450 --> 03:34.240
, we're automatically

77
03:34.240 --> 03:38.260
going to go ahead and use whatever our egress interface IP address is and

78
03:38.260 --> 03:39.280
modify the Next Top to

79
03:39.280 --> 03:43.120
that value. So changing the Next Top value is important for these edge routers

80
03:43.120 --> 03:44.160
here before sending

81
03:44.160 --> 03:48.010
updates to other internal BGP neighbors. So let's head over to R11. We'll

82
03:48.010 --> 03:48.640
modify our

83
03:48.640 --> 03:53.260
neighborship to R13 and R12 and specify we're using our own Next Top address

84
03:53.260 --> 03:53.920
for the updates that we

85
03:53.920 --> 03:58.210
send out. And then we should see the difference show up here on R12 and R13.

86
03:58.210 --> 03:59.280
All right. So let's just

87
03:59.280 --> 04:02.800
do a quick verification. In fact, I'm going to use this option right here. The
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

87
03:59.280 --> 04:02.800
do a quick verification. In fact, I'm going to use this option right here. The

88
04:02.800 --> 04:03.840
little send commands

89
04:03.840 --> 04:07.540
to multiple routers at the same time. And I'm going to do a show. And then we

90
04:07.540 --> 04:08.240
'll do a few spaces

91
04:08.240 --> 04:12.120
there to clear the screen a little bit. Let's do a show IP BGP and press Enter

92
04:12.120 --> 04:13.040
and then we'll send

93
04:13.040 --> 04:18.600
that to R12 and R13 and we'll send that out. Great, great, great. So there's R

94
04:18.600 --> 04:20.160
12. There's the 22

95
04:20.160 --> 04:26.800
network with the Next Top of 2310 2021. And if we look at our 13, same thing.

96
04:26.800 --> 04:28.080
We have that route

97
04:28.080 --> 04:34.410
to 22222222 that BGP information with the Next Top. But also in R13, R13 doesn
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

97
04:28.080 --> 04:34.410
to 22222222 that BGP information with the Next Top. But also in R13, R13 doesn

98
04:34.410 --> 04:34.720
't have reach

99
04:34.720 --> 04:38.660
really that Next Top. So it's not considering that a valid route. So let's go

100
04:38.660 --> 04:39.760
to R11 and change

101
04:39.760 --> 04:45.100
the rules. Now, an easy way to do this is to do a show, run, pipe, section. And

102
04:45.100 --> 04:46.480
you can do router or

103
04:46.480 --> 04:50.730
if you just want to see the BGP, BGP. And then from here, we'll just copy and

104
04:50.730 --> 04:52.160
paste router BGP.

105
04:52.160 --> 04:57.400
And then we want to modify the neighbor 12, 12, 12, 12. And we're going to say

106
04:57.400 --> 04:58.800
Next, Hop,

107
04:58.800 --> 05:03.460
self. And we'll do the same thing for 13. So we'll copy and paste neighbor 13
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

107
04:58.800 --> 05:03.460
self. And we'll do the same thing for 13. So we'll copy and paste neighbor 13

108
05:03.460 --> 05:05.120
13 13 13 13

109
05:05.120 --> 05:08.680
and say Next Top self. And then let's take a look at our config. So we'll do a

110
05:08.680 --> 05:10.000
show, run, pipe,

111
05:10.000 --> 05:14.850
section, BGP, press Center. So now when we're sending updates to R12 and now

112
05:14.850 --> 05:15.440
when we're sending

113
05:15.440 --> 05:20.240
updates over to R13, instead of leaving that original Next Top attribute, we're

114
05:20.240 --> 05:21.200
going to change it

115
05:21.200 --> 05:25.470
to R11's address. And in a production environment, it would be wise not to do

116
05:25.470 --> 05:26.720
what I'm about to do.

117
05:26.720 --> 05:30.860
But because it's a lab, it'll be okay. I'm going to go ahead and do a clear IP
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

117
05:26.720 --> 05:30.860
But because it's a lab, it'll be okay. I'm going to go ahead and do a clear IP

118
05:30.860 --> 05:31.680
BGP

119
05:31.680 --> 05:36.740
asterisk. And then I'm going to apply that to 11 12 and 13. And it's going to

120
05:36.740 --> 05:37.600
take probably a minute

121
05:37.600 --> 05:41.150
or two for the whole thing to converge and to get those routes all ready to go.

122
05:41.150 --> 05:41.920
But I want to just

123
05:41.920 --> 05:46.250
verify that we have a nice clean config. And we're not hanging on to any older

124
05:46.250 --> 05:47.600
information. So if we

125
05:47.600 --> 05:53.140
head over to R12 and we do a show IP BGP summary, currently what this says is

126
05:53.140 --> 05:54.560
that R12 has not

127
05:54.560 --> 05:58.790
learned any routes based on this last column states/prefix received. We haven't

128
05:58.790 --> 06:00.400
learned any routes yet.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

128
05:58.790 --> 06:00.400
learned any routes yet.

129
06:00.400 --> 06:03.600
But they're coming. So if we hit that bar of key, we can simply wait. We can

130
06:03.600 --> 06:05.680
also show IP BGP.

131
06:05.680 --> 06:10.240
And currently there's nothing there. But once we have received the prefixes,

132
06:10.240 --> 06:10.640
they should show up

133
06:10.640 --> 06:14.410
here as account. And we should also be able to show IP BGP. And that's up there

134
06:14.410 --> 06:15.440
as well. But again,

135
06:15.440 --> 06:18.880
it may take a minute or two for it to converge. So we'll give it a moment. Let

136
06:18.880 --> 06:20.160
the upper key show

137
06:20.160 --> 06:24.420
IP BGP. Ah, there they are. So fantastic. So if we hit the upper key a couple

138
06:24.420 --> 06:25.440
times and do a show

139
06:25.440 --> 06:31.280
IP BGP summary, notice that we have received three prefixes from our peer 11 11
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

139
06:25.440 --> 06:31.280
IP BGP summary, notice that we have received three prefixes from our peer 11 11

140
06:31.280 --> 06:33.360
11 11 which is R11.

141
06:33.360 --> 06:38.080
So now if we do a show IP BGP right here next to all three routes, we have that

142
06:38.080 --> 06:38.560
greater than

143
06:38.560 --> 06:43.450
symbol, which means best path. And check it out. The next top is 11 11 11 11,

144
06:43.450 --> 06:44.720
which is R 11,

145
06:44.720 --> 06:48.480
which we know how to get to. So now these three BGP learned routes. They should

146
06:48.480 --> 06:49.360
also be showing up

147
06:49.360 --> 06:53.940
in the winner's table, the routing table by doing a show IP route and pressing

148
06:53.940 --> 06:54.400
enter.

149
06:54.400 --> 06:58.260
And in fact, we go ahead and do a show IP route and filter that to just BGP

150
06:58.260 --> 06:59.440
learned routes.

151
06:59.440 --> 07:03.940
And there they are right there. The 22 network, the 32 and the 43, which are
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

151
06:59.440 --> 07:03.940
And there they are right there. The 22 network, the 32 and the 43, which are

152
07:03.940 --> 07:04.960
the loop backs over on

153
07:04.960 --> 07:09.690
router 22, router 32 and router 43. Now, should we be able to ping those

154
07:09.690 --> 07:11.120
addresses we have routes?

155
07:11.120 --> 07:15.520
Should we be able to ping them and get a response pack? And the answer is no.

156
07:15.520 --> 07:17.440
And the reason is

157
07:17.440 --> 07:20.660
because we have those routes. So router 12 knows how to forward in that

158
07:20.660 --> 07:22.800
direction R 11. But what happens

159
07:22.800 --> 07:29.190
though, if we ping the loop backs on R 22 or R 43 or R 32, unfortunately, those

160
07:29.190 --> 07:30.080
other autonomous
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

160
07:29.190 --> 07:30.080
other autonomous

161
07:30.080 --> 07:34.670
systems have no clue how to get back here to the 10 12 address space or 10 11

162
07:34.670 --> 07:36.000
address space

163
07:36.000 --> 07:41.040
or the 12 12 12 address space. So if you want to do a ping, for example, from R

164
07:41.040 --> 07:42.400
12 and is loop back

165
07:42.400 --> 07:47.990
over to AS 20 or AS 40 or AS 30, we also want to make sure we're advertising

166
07:47.990 --> 07:49.440
those networks inside

167
07:49.440 --> 07:52.870
of BGP so that the other autonomous systems in the routers there would know how

168
07:52.870 --> 07:53.680
to forward back.

169
07:53.680 --> 07:59.020
So right now, if we went to R 22, for example, and we did a show IP route,

170
07:59.020 --> 08:00.320
there's no information here
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

170
07:59.020 --> 08:00.320
there's no information here

171
08:00.320 --> 08:06.320
about any networks over at a ton of system 10. So the loop back on R 12 is 12

172
08:06.320 --> 08:08.320
12 12 12. It's not

173
08:08.320 --> 08:12.670
here. So we sourced the ping from 12 12 12 and it was coming over here to R 22.

174
08:12.670 --> 08:13.680
R 22 would not know

175
08:13.680 --> 08:19.860
how to respond. And to verify that, let's go to R 12 and let's do a ping over

176
08:19.860 --> 08:22.160
to 22. 22. 22. 22. 22. 22.

177
08:22.160 --> 08:26.860
We'll source it from our loop back zero. And those pings are reaching the

178
08:26.860 --> 08:28.400
destination. But the

179
08:28.400 --> 08:33.120
responses are not coming back. So that'll be our next step in the next video is
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

179
08:28.400 --> 08:33.120
responses are not coming back. So that'll be our next step in the next video is

180
08:33.120 --> 08:34.240
how do we advertise

181
08:34.240 --> 08:38.240
and network in BGP. I'll see you in that next video in just a moment.
