WEBVTT

1
00:00.000 --> 00:07.120
In a autonomous system 20 and 40 and 30, each of the interior IBGP routers in

2
00:07.120 --> 00:07.680
those autonomous

3
00:07.680 --> 00:09.720
systems are advertising their loop back.

4
00:09.720 --> 00:17.430
So down here it's 32.32.32, etc. with a 32-bit mask and up here it's 22.22.22

5
00:17.430 --> 00:18.120
with a 32-bit

6
00:18.120 --> 00:24.440
mask and down here it's 43.43, etc. with a 32-bit mask.

7
00:24.440 --> 00:27.920
And that represents the loop back on each of those respective routers.

8
00:27.920 --> 00:31.900
And those are being advertised into BGP and that's why over here at R12 and R13
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

8
00:27.920 --> 00:31.900
And those are being advertised into BGP and that's why over here at R12 and R13

9
00:31.900 --> 00:32.480
and R11

10
00:32.480 --> 00:36.120
that's why they know about those networks is because those routers are

11
00:36.120 --> 00:37.000
advertising those

12
00:37.000 --> 00:38.000
networks.

13
00:38.000 --> 00:41.930
So in this video I'd like to share with you one way of advertising a route or

14
00:41.930 --> 00:42.600
including

15
00:42.600 --> 00:44.320
a route inside of BGP.

16
00:44.320 --> 00:47.430
Now we're going to use router 12 as an example for this and router 12 has a

17
00:47.430 --> 00:48.280
loop back interface

18
00:48.280 --> 00:52.960
of 12.12.12.12 with a /32-bit mask.

19
00:52.960 --> 00:56.900
Now one of the interesting things about advertising a route in a BGP router is

20
00:56.900 --> 00:57.800
that if we say

21
00:57.800 --> 01:02.400
we want to advertise this route but yet we don't have a route to 12.12.12.12.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

21
00:57.800 --> 01:02.400
we want to advertise this route but yet we don't have a route to 12.12.12.12.

22
01:02.400 --> 01:04.400
It's not going to be advertised in BGP either.

23
01:04.400 --> 01:08.200
So we want to make sure that the router has access to and can reach the

24
01:08.200 --> 01:09.320
networks for which

25
01:09.320 --> 01:10.320
it's advertising.

26
01:10.320 --> 01:14.890
So the syntax in router BGP configuration mode to advertise a network would be

27
01:14.890 --> 01:16.080
router BGP

28
01:16.080 --> 01:17.080
in the case of R12.

29
01:17.080 --> 01:19.760
It's an autonomous system 10 that hasn't changed.

30
01:19.760 --> 01:24.080
And then once we're in router configuration mode we simply type in network

31
01:24.080 --> 01:24.840
space and the

32
01:24.840 --> 01:31.040
network would advertise 12.12.12.12 space the keyword mask and then the mask
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

32
01:24.840 --> 01:31.040
network would advertise 12.12.12.12 space the keyword mask and then the mask

33
01:31.040 --> 01:32.040
and dotted decimal

34
01:32.040 --> 01:33.200
that we want to use.

35
01:33.200 --> 01:37.710
So if this is a 32-bit route the mask would be 255 times 4 meaning all four oct

36
01:37.710 --> 01:38.360
ets would be

37
01:38.360 --> 01:39.360
255.

38
01:39.360 --> 01:42.490
And once we've done that and assuming R12 has that route which it does it's a

39
01:42.490 --> 01:43.040
loop back

40
01:43.040 --> 01:47.320
in interface address it'll then go ahead and advertise that as part of BGP.

41
01:47.320 --> 01:52.280
So that'll be advertised to R13 and R11 and then R11 will advertise that to its

42
01:52.280 --> 01:52.880
external

43
01:52.880 --> 01:57.430
BGP neighbors it'll include information such as the AS path and also the next

44
01:57.430 --> 01:58.560
hop information

45
01:58.560 --> 02:03.830
and then R31 will propagate that to R41 R21 will propagate that over to R42 and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

45
01:58.560 --> 02:03.830
and then R31 will propagate that to R41 R21 will propagate that over to R42 and

46
02:03.830 --> 02:05.480
then R42

47
02:05.480 --> 02:09.960
and R41 will share that via their internal BGP membership connection.

48
02:09.960 --> 02:13.830
And that route would also be passed down to the internal peers here here and

49
02:13.830 --> 02:14.360
here.

50
02:14.360 --> 02:19.030
So without further ado let's go ahead and advertise that network right here on

51
02:19.030 --> 02:19.840
R12.

52
02:19.840 --> 02:26.310
So here on R12 if we do a show IP BGP so I verify that is not in the BGP table

53
02:26.310 --> 02:26.840
and if we go

54
02:26.840 --> 02:29.520
over to another router let's take a look at our topology.

55
02:29.520 --> 02:32.960
Let's go over to our how about R43 at the bottom right hand side of our top
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

55
02:29.520 --> 02:32.960
Let's go over to our how about R43 at the bottom right hand side of our top

56
02:32.960 --> 02:33.520
ology.

57
02:33.520 --> 02:37.440
We've got R43 and to a show IP BGP.

58
02:37.440 --> 02:41.130
Even though it's the route for the 12-12-12 is not there but it does add the

59
02:41.130 --> 02:41.680
loop backs

60
02:41.680 --> 02:45.520
for R22, R32 and R43.

61
02:45.520 --> 02:51.380
So let's go up to R12 and here in R12 let's go into a show run, right section B

62
02:51.380 --> 02:51.840
GP.

63
02:51.840 --> 02:55.720
Alright so we're going to go into configuration mode we'll go into router BGP,

64
02:55.720 --> 02:56.480
autonomous

65
02:56.480 --> 03:00.100
system 10 and then from here we're going to use the network statement and we
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

65
02:56.480 --> 03:00.100
system 10 and then from here we're going to use the network statement and we

66
03:00.100 --> 03:00.600
want to go

67
03:00.600 --> 03:01.600
ahead.

68
03:01.600 --> 03:05.460
In fact let's just do a quick check of the interface do show IP interface brief

69
03:05.460 --> 03:06.200
please exclude

70
03:06.200 --> 03:10.600
any unsigned interfaces and there's our loop back address right there and that

71
03:10.600 --> 03:10.960
happens

72
03:10.960 --> 03:12.400
to be a 32 bit route.

73
03:12.400 --> 03:16.900
So let's go ahead and type in network and router BGP configuration mode network

74
03:16.900 --> 03:17.120
and I'll

75
03:17.120 --> 03:21.640
copy paste that address in and then we'll use the keyword mask space and then

76
03:21.640 --> 03:22.240
the mask

77
03:22.240 --> 03:26.720
which is 32 bits we'll put that in in dot a decimal and boom we are done.

78
03:26.720 --> 03:31.130
So BGP is not the fastest routing protocol to converge but it's not built for
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

78
03:26.720 --> 03:31.130
So BGP is not the fastest routing protocol to converge but it's not built for

79
03:31.130 --> 03:31.520
speed

80
03:31.520 --> 03:36.400
it's built for volume to be able to handle hundreds of thousands of routes.

81
03:36.400 --> 03:40.380
So now if we do a show IP BGP locally here on router 12 and those here it's in

82
03:40.380 --> 03:41.400
the BGP

83
03:41.400 --> 03:42.400
terminal.

84
03:42.400 --> 03:47.080
So it has the next top of 0, 0, 0, 0 meaning we added this route into BGP on

85
03:47.080 --> 03:47.720
this local

86
03:47.720 --> 03:50.760
router and it considers that the best route.

87
03:50.760 --> 03:52.280
So showing up as a valid route.

88
03:52.280 --> 03:56.390
So now if we were to go to another router let's go down to R43 in the bottom

89
03:56.390 --> 03:57.800
right hand corner

90
03:57.800 --> 04:01.200
it should also know about that route to 12, 12, 12, 12.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

90
03:57.800 --> 04:01.200
it should also know about that route to 12, 12, 12, 12.

91
04:01.200 --> 04:05.120
However it's going to see the next top as R42's risk is going to learn that way

92
04:05.120 --> 04:05.320
it's

93
04:05.320 --> 04:07.440
also going to see it coming in from R41.

94
04:07.440 --> 04:11.120
So it's going to have a route in there twice because it learned that twice from

95
04:11.120 --> 04:11.720
R41 and

96
04:11.720 --> 04:16.030
R42 and for the next top because I've also done the next top self command on R

97
04:16.030 --> 04:16.600
41 and

98
04:16.600 --> 04:19.560
R42 for its internal peer here R43.

99
04:19.560 --> 04:24.480
As a result it's going to show the appropriate address R42's dress or R41's

100
04:24.480 --> 04:24.780
dress as the

101
04:24.780 --> 04:28.040
next top inside the BGP routing information base.

102
04:28.040 --> 04:30.400
So let's head over to R43 and take a look.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

102
04:28.040 --> 04:30.400
So let's head over to R43 and take a look.

103
04:30.400 --> 04:34.800
So there's the tab for R43 and let the up here a key it was.

104
04:34.800 --> 04:38.720
Those were the three previous BGP routes.

105
04:38.720 --> 04:42.320
We now have that route right here and we have that route twice coming from

106
04:42.320 --> 04:42.860
those two

107
04:42.860 --> 04:48.170
next tops R41 and R42 and the one that's selected as the best is this one right

108
04:48.170 --> 04:48.760
here with

109
04:48.760 --> 04:50.600
the next top of R41.

110
04:50.600 --> 04:53.760
So one of the questions might be well why did it choose that second one and not

111
04:53.760 --> 04:54.280
the first

112
04:54.280 --> 04:58.470
one and let's do a quick reminder on some of the decision points the router is

113
04:58.470 --> 04:58.880
going

114
04:58.880 --> 05:02.360
to make as it's considering which one is the best path.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

114
04:58.880 --> 05:02.360
to make as it's considering which one is the best path.

115
05:02.360 --> 05:06.390
In a Cisco world the first consideration is wait so we look at the wait the

116
05:06.390 --> 05:07.440
wait is zero

117
05:07.440 --> 05:08.600
for both of them.

118
05:08.600 --> 05:12.080
The next decision point is local preference which we look at the local

119
05:12.080 --> 05:12.880
preference for

120
05:12.880 --> 05:13.880
those two routes.

121
05:13.880 --> 05:16.120
They are also the same of 100 each.

122
05:16.120 --> 05:20.040
The next consideration would be is the route sourced by me meaning the next top

123
05:20.040 --> 05:20.400
is 0,

124
05:20.400 --> 05:24.680
0, 0, 0 and neither of those next tops is 0, 0, 0, 0.

125
05:24.680 --> 05:28.560
But check this out the loopback interface that R43 is putting in to BGP it does

126
05:28.560 --> 05:28.920
have the

127
05:28.920 --> 05:32.420
next top but that applies to that route but not the 12, 12, 12 so that's all
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

127
05:28.920 --> 05:32.420
next top but that applies to that route but not the 12, 12, 12 so that's all

128
05:32.420 --> 05:34.480
the same.

129
05:34.480 --> 05:39.400
And the next consideration is the shortest AS path and for the AS path that AS

130
05:39.400 --> 05:40.040
path has

131
05:40.040 --> 05:41.920
two in both of them.

132
05:41.920 --> 05:45.920
So as far as which one shorter they both have two AS paths that they've gone

133
05:45.920 --> 05:46.520
through so

134
05:46.520 --> 05:47.560
that's equal.

135
05:47.560 --> 05:51.220
And there's several other considerations making including the multi exit

136
05:51.220 --> 05:52.040
discriminator

137
05:52.040 --> 05:53.360
also referred to as the metric.

138
05:53.360 --> 05:56.560
It was looking for the lowest one there but that met is 0.

139
05:56.560 --> 05:59.810
One of the other considerations is this being learned from an external BGP

140
05:59.810 --> 06:00.540
neighbor or
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

140
05:59.810 --> 06:00.540
neighbor or

141
06:00.540 --> 06:05.570
from an internal now from the perspective of R43 both R41 and R42 are both

142
06:05.570 --> 06:06.520
internal BGP

143
06:06.520 --> 06:08.160
neighbors so that's also equal.

144
06:08.160 --> 06:11.940
And so as it's going down this pecking order trying to decide which one is the

145
06:11.940 --> 06:12.880
best path

146
06:12.880 --> 06:16.910
the tie breaker in this example in this case it boils down to the router ID or

147
06:16.910 --> 06:17.440
read for

148
06:17.440 --> 06:18.440
short.

149
06:18.440 --> 06:22.990
So the router ID as well as the next top based on the loopback here on R41 is

150
06:22.990 --> 06:24.360
41, 41, 41,

151
06:24.360 --> 06:30.720
and the router ID for R42 as well as its loopback zero interface address is 42,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

151
06:24.360 --> 06:30.720
and the router ID for R42 as well as its loopback zero interface address is 42,

152
06:30.720 --> 06:31.360
42, 42, 42,

153
06:31.360 --> 06:32.360
42.

154
06:32.360 --> 06:34.200
So it's boiling down to the lowest.

155
06:34.200 --> 06:37.820
However, if there was any of these other parameters that were going to tip it

156
06:37.820 --> 06:38.880
off first it

157
06:38.880 --> 06:42.240
would use one of those but everything up to this point was equal.

158
06:42.240 --> 06:45.590
That's why it shows the lowest router ID as the decision point for which one it

159
06:45.590 --> 06:46.000
was going

160
06:46.000 --> 06:47.720
to consider as best.

161
06:47.720 --> 06:50.790
And I would say at this point in our journey with the world of BGP you don't

162
06:50.790 --> 06:51.840
have to memorize

163
06:51.840 --> 06:56.180
like the 12 or 13 decision points it has to make but I would encourage you to

164
06:56.180 --> 06:57.440
be very aware

165
06:57.440 --> 07:01.220
of those first four in order on a Cisco router when a router is trying to
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

165
06:57.440 --> 07:01.220
of those first four in order on a Cisco router when a router is trying to

166
07:01.220 --> 07:02.520
decide which route

167
07:02.520 --> 07:05.380
from the BGP table it should use as the best route and that's the route it's

168
07:05.380 --> 07:05.840
going to

169
07:05.840 --> 07:07.320
put in its routing table.

170
07:07.320 --> 07:11.870
So now here on router 43 this route with the next top of 41 etc that should be

171
07:11.870 --> 07:12.640
the BGP

172
07:12.640 --> 07:15.600
learned route in the routing table for 12, 12, 12, 12.

173
07:15.600 --> 07:20.170
And we can verify that by doing a show IP route and we just filter it for BGP

174
07:20.170 --> 07:20.320
learned

175
07:20.320 --> 07:25.600
routes and there's the 12, 12, 12 network with the next top of 41, 41, 41, 41.

176
07:25.600 --> 07:29.800
So now that we've advertised here on our 12 that local loopback zero address

177
07:29.800 --> 07:30.280
and we placed
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

177
07:29.800 --> 07:30.280
and we placed

178
07:30.280 --> 07:34.360
that in BGP we should be able to ping from any loopback to any other loopback

179
07:34.360 --> 07:35.560
on our 12,

180
07:35.560 --> 07:40.320
our 22, our 43 and our 32 those are the four routes we have in BGP.

181
07:40.320 --> 07:44.570
So if we go back to our 12 now and here on our 12 do a show IP BGP that hasn't

182
07:44.570 --> 07:45.120
changed

183
07:45.120 --> 07:53.860
fantastic so we did a ping over to say R22 by pinging 22.22.22.22 and we source

184
07:53.860 --> 07:54.480
that from

185
07:54.480 --> 07:58.500
our loopback zero because for the return path they have reachability to that

186
07:58.500 --> 07:59.000
now that should

187
07:59.000 --> 08:02.520
work and we should be able to the same thing for the others as well.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

187
07:59.000 --> 08:02.520
work and we should be able to the same thing for the others as well.

188
08:02.520 --> 08:07.300
So if we ping over to 32 etc and press center that shouldn't work because the

189
08:07.300 --> 08:08.200
response can't

190
08:08.200 --> 08:11.220
come back because we're not sourcing it from our loopbacks we'll do a control

191
08:11.220 --> 08:11.600
shift

192
08:11.600 --> 08:15.490
six a couple times I'll clear off my ink we'll hit the app arrow key and this

193
08:15.490 --> 08:15.920
time we'll

194
08:15.920 --> 08:20.080
source it from loopback zero and because they have reachability to our loopback

195
08:20.080 --> 08:20.720
zero that should

196
08:20.720 --> 08:21.720
work.

197
08:21.720 --> 08:27.180
Let's do a more test with a trace out to 43 43 43 43 43 43 which is the loop

198
08:27.180 --> 08:28.160
back zero interface

199
08:28.160 --> 08:32.650
being advertised by R43 so we'll trace to that address space and we'll source
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

199
08:28.160 --> 08:32.650
being advertised by R43 so we'll trace to that address space and we'll source

200
08:32.650 --> 08:33.080
that as

201
08:33.080 --> 08:37.400
well from loopback zero press center and there's our path to the network.

202
08:37.400 --> 08:42.800
Now if we go to R41 in our topology and that is right here that's the bottom

203
08:42.800 --> 08:43.520
edge route

204
08:43.520 --> 08:48.000
of there in a ton of system 40 so here in R41 we do a show IP bgp and press

205
08:48.000 --> 08:48.520
center for

206
08:48.520 --> 08:54.810
that 12 12 12 network it's using 23 dot 30 dot 40 dot 31 as the next hop and

207
08:54.810 --> 08:55.520
that is the

208
08:55.520 --> 09:03.920
IP address of R31 instead of the next top of 42 42 42 42 or if we went to R11
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

208
08:55.520 --> 09:03.920
IP address of R31 instead of the next top of 42 42 42 42 or if we went to R11

209
09:03.920 --> 09:04.640
and we

210
09:04.640 --> 09:09.720
went to topology R11 is the edge router up in a ton of system 10 and we did a

211
09:09.720 --> 09:11.080
show IP bgp

212
09:11.080 --> 09:15.840
press center here showing that it's best path to get to 43 43 is to the next

213
09:15.840 --> 09:17.480
top of R21

214
09:17.480 --> 09:21.920
as opposed to going through R31 in a ton of system 30 and so in the next video

215
09:21.920 --> 09:22.320
I'd like

216
09:22.320 --> 09:27.860
to reinforce the idea that the path is chosen based on the attributes of that

217
09:27.860 --> 09:28.440
route and

218
09:28.440 --> 09:32.440
to do that we're going to modify the weight for incoming routes right here on R
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

218
09:28.440 --> 09:32.440
to do that we're going to modify the weight for incoming routes right here on R

219
09:32.440 --> 09:33.080
11 so we

220
09:33.080 --> 09:36.830
can see that once we change the weights which is the highest priority looked at

221
09:36.830 --> 09:37.280
it's going

222
09:37.280 --> 09:41.790
to modify which routes R11 considers best so we'll do the next video and I'll

223
09:41.790 --> 09:42.440
see you there
