WEBVTT

1
00:00.000 --> 00:07.000
So it's next. Let's talk about those OSPF neighborhoodships.

2
00:07.000 --> 00:13.000
Certain things have to be correct in order for OSPF neighborhoodships to form.

3
00:13.000 --> 00:18.000
First, you have to have reachability between the devices that are going to

4
00:18.000 --> 00:19.000
become neighbors.

5
00:19.000 --> 00:25.050
Now, most of our technologies today with OSPF network types that we just

6
00:25.050 --> 00:28.000
discussed are going to use multicast.

7
00:28.000 --> 00:35.000
Specifically, 224.0.0.5 and 224.0.0.6.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

7
00:28.000 --> 00:35.000
Specifically, 224.0.0.5 and 224.0.0.6.

8
00:35.000 --> 00:39.000
However, the .5 is used for our neighborships.

9
00:39.000 --> 00:43.840
So we can actually do a ping to that address to see if the other routers are

10
00:43.840 --> 00:45.000
responding.

11
00:45.000 --> 00:48.000
We'll do this as we go through our troubleshooting.

12
00:48.000 --> 00:52.000
Now, something that has to match is the area ID.

13
00:52.000 --> 00:57.000
Both sides of a link have to be in the same area in OSPF.

14
00:57.000 --> 01:03.000
Now, different interfaces on a router can, of course, be in different areas,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

14
00:57.000 --> 01:03.000
Now, different interfaces on a router can, of course, be in different areas,

15
01:03.000 --> 01:07.000
but between you and your neighbor, you have to be in the same area.

16
01:07.000 --> 01:12.000
You also have to be on the same network or subnet, which means your IP address

17
01:12.000 --> 01:14.000
and your subnet mask have to match.

18
01:14.000 --> 01:19.000
One side can't think it's a slash 30 and the other side thinks it's a slash 28.

19
01:19.000 --> 01:24.300
Even if the network numbers are compatible, it exchanges the subnet mask and

20
01:24.300 --> 01:26.000
that has to match as well.

21
01:26.000 --> 01:30.000
Something that actually has to be different are your router IDs.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

22
01:30.000 --> 01:34.000
You cannot have duplicate router IDs within the same area.

23
01:34.000 --> 01:37.880
And since your neighbors have to be in the same area, you cannot have a

24
01:37.880 --> 01:40.000
duplicate router ID with your neighbor.

25
01:40.000 --> 01:43.000
The neighborship will fail to come up.

26
01:43.000 --> 01:48.000
Also, to prevent neighbors from flapping, hello and dead timers have to match.

27
01:48.000 --> 01:54.590
This is simply for practical reasons, and OSPF has a built-in check to make

28
01:54.590 --> 01:55.000
sure that these match.

29
01:55.000 --> 02:00.610
The MTU or the maximum transmission unit on the segment has to be the same as
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

29
01:55.000 --> 02:00.610
The MTU or the maximum transmission unit on the segment has to be the same as

30
02:00.610 --> 02:01.000
well.

31
02:01.000 --> 02:06.020
If you're doing authentication, which is, of course, optional, but if you're

32
02:06.020 --> 02:10.760
doing authentication, the authentication on both sides, of course, has to match

33
02:10.760 --> 02:11.000
.

34
02:11.000 --> 02:15.310
Let's be honest, authentication wouldn't mean too much if it didn't have to

35
02:15.310 --> 02:16.000
match.

36
02:16.000 --> 02:18.000
Now, there are different types of authentication.

37
02:18.000 --> 02:21.000
We'll talk about that in a moment as well.

38
02:21.000 --> 02:24.570
Now, one thing that we've already discussed, but just to keep it on the list

39
02:24.570 --> 02:29.000
here, that stub area flag has to match.

40
02:29.000 --> 02:33.740
You cannot have one router in the area think it's a stub area and another
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

40
02:29.000 --> 02:33.740
You cannot have one router in the area think it's a stub area and another

41
02:33.740 --> 02:36.000
router think it's not a stub area.

42
02:36.000 --> 02:39.990
And since, again, the neighbors have to be in the same area, that means the

43
02:39.990 --> 02:43.000
stub flag for that area also has to match.

44
02:43.000 --> 02:46.000
And finally, the compatible network types.

45
02:46.000 --> 02:49.000
Again, this is for database consistency.

46
02:49.000 --> 02:56.000
This, of course, is referring to the fact if there is a DR or no DR.

47
02:56.000 --> 02:59.000
So if there's a DR, you can mix and match.

48
02:59.000 --> 03:05.000
If there's no DR, you can mix and match, but between a DR and not having a DR,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

48
02:59.000 --> 03:05.000
If there's no DR, you can mix and match, but between a DR and not having a DR,

49
03:05.000 --> 03:06.000
you cannot.

50
03:06.000 --> 03:08.000
And again, I'll be honest with you here.

51
03:08.000 --> 03:13.000
This can be a very tricky problem to troubleshoot.

52
03:13.000 --> 03:16.000
We're going to see this in one of our examples.

53
03:16.000 --> 03:20.390
This is tricky because the neighborship itself, and I know you might be

54
03:20.390 --> 03:25.320
thinking, well, why did you put it under OSPF neighborships with what you're

55
03:25.320 --> 03:26.000
about to say?

56
03:26.000 --> 03:29.600
Well, because it doesn't really necessarily fit anywhere else, but the

57
03:29.600 --> 03:33.000
neighborships will come up.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

57
03:29.600 --> 03:33.000
neighborships will come up.

58
03:33.000 --> 03:36.000
But the database will be invalid.

59
03:36.000 --> 03:40.000
Therefore, OSPF will not use the database.

60
03:40.000 --> 03:42.000
Well, therefore, you might as well not have neighborships.

61
03:42.000 --> 03:46.020
But again, this one can be a little bit tricky. Maybe it should be in a

62
03:46.020 --> 03:50.000
category of its own because, again, the neighborship will establish.

63
03:50.000 --> 03:54.000
But either way, be aware that this must match.

64
03:54.000 --> 03:57.000
Next up, we have OSPF authentication types.

65
03:57.000 --> 04:01.990
For the authentication types, the default is actually type zero, which means we
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

65
03:57.000 --> 04:01.990
For the authentication types, the default is actually type zero, which means we

66
04:01.990 --> 04:04.000
're actually not doing any authentication.

67
04:04.000 --> 04:07.000
So that's effectively off.

68
04:07.000 --> 04:11.000
Then there's type one, which I really wouldn't recommend.

69
04:11.000 --> 04:15.830
This is, of course, just plain text authentication, which means your password

70
04:15.830 --> 04:19.000
is going to be sent over your network in plain text.

71
04:19.000 --> 04:23.280
Anybody doing packet capturing or anything like that could easily catch this

72
04:23.280 --> 04:24.000
password.

73
04:24.000 --> 04:26.000
You could make the argument.

74
04:26.000 --> 04:27.000
It's better than nothing.

75
04:27.000 --> 04:33.370
But, you know, it's really about the same to set up plain text authentication
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

75
04:27.000 --> 04:33.370
But, you know, it's really about the same to set up plain text authentication

76
04:33.370 --> 04:35.000
versus type two.

77
04:35.000 --> 04:39.000
So in most cases, I would, of course, recommend going to type two.

78
04:39.000 --> 04:45.470
This is either going to be MD five authentication or HMAC Shaw authentication,

79
04:45.470 --> 04:48.000
depending on the version of code you're using.

80
04:48.000 --> 04:53.000
Most of the newer code, of course, is using HMAC Shaw.

81
04:53.000 --> 04:56.000
Next, let's discuss the OSPF route types.

82
04:56.000 --> 05:00.670
Here, we're talking about the different OSPF entries that we would see when we
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

82
04:56.000 --> 05:00.670
Here, we're talking about the different OSPF entries that we would see when we

83
05:00.670 --> 05:02.000
do a show IP route.

84
05:02.000 --> 05:06.000
The first one is just a standard O by itself.

85
05:06.000 --> 05:11.000
This indicates an intra area route, meaning within this area.

86
05:11.000 --> 05:17.030
And that also indicates that it came from either a type one or a type two LSA

87
05:17.030 --> 05:21.000
because those LSA types stay within the area.

88
05:21.000 --> 05:26.000
Next, we have the OIA, which is the inter area route.

89
05:26.000 --> 05:31.000
This would be routes to networks in a different area.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

89
05:26.000 --> 05:31.000
This would be routes to networks in a different area.

90
05:31.000 --> 05:35.000
These are, of course, coming from an LSA type three.

91
05:35.000 --> 05:39.000
Next, we have the O E one or E two.

92
05:39.000 --> 05:41.000
These are external routes.

93
05:41.000 --> 05:47.670
And remember that the externals can be either a type one or a type two external

94
05:47.670 --> 05:52.000
, but they're carried in a type five LSA.

95
05:52.000 --> 05:58.000
So don't confuse the external type with the LSA type that carries it.

96
05:58.000 --> 06:04.000
Next, we have the counterpart to these, the O with an N one or an N two.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

96
05:58.000 --> 06:04.000
Next, we have the counterpart to these, the O with an N one or an N two.

97
06:04.000 --> 06:08.000
These are NSSA external.

98
06:08.000 --> 06:14.000
So the equivalent of the type five, but inside of the NSSA itself.

99
06:14.000 --> 06:18.000
So therefore, we carry it in a type seven.

100
06:18.000 --> 06:24.240
And to wrap up, let's talk about some good tools that we have for troubles

101
06:24.240 --> 06:26.000
hooting in OSPF.

102
06:26.000 --> 06:30.000
This is just for the purpose of having a good list of commands that we can use.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

103
06:30.000 --> 06:34.920
We'll be seeing all of these on the command line as we actually do troubles

104
06:34.920 --> 06:37.000
hooting in the next video.

105
06:37.000 --> 06:41.000
So the first one is show IP protocols.

106
06:41.000 --> 06:45.760
Great command that shows us information about all of the IP protocols that we

107
06:45.760 --> 06:49.000
're running OSPF, of course, being one of them.

108
06:49.000 --> 06:53.840
You can also get more specific information about OSPF itself with a show IP OSP

109
06:53.840 --> 06:54.000
F.

110
06:54.000 --> 07:00.000
We can verify our neighbors with a show IP OSPF neighbor.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

111
07:00.000 --> 07:03.000
Also, we can verify our interfaces.

112
07:03.000 --> 07:06.000
We do this with a show IP OSPF interface.

113
07:06.000 --> 07:10.200
If you're looking for detail, you just hit enter. If you just want a really

114
07:10.200 --> 07:14.570
good summary, you can add brief to this just to make sure all your neighbors

115
07:14.570 --> 07:15.000
are up.

116
07:15.000 --> 07:18.000
It's a really good short summary.

117
07:18.000 --> 07:24.000
We mentioned this one before, but you can ping the multicast address for OSPF

118
07:24.000 --> 07:25.000
neighborships.

119
07:25.000 --> 07:30.080
And this will tell us if our neighboring routers are actually listening for OSP
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

119
07:25.000 --> 07:30.080
And this will tell us if our neighboring routers are actually listening for OSP

120
07:30.080 --> 07:31.000
F properly.

121
07:31.000 --> 07:34.000
Maybe the neighboring routers not configured correctly.

122
07:34.000 --> 07:39.000
The show IP OSPF database will let us look at, of course, the database itself.

123
07:39.000 --> 07:43.000
This command by itself will give you a nice overview.

124
07:43.000 --> 07:49.860
Then you can drill down by doing a show IP OSPF database and then specifying an

125
07:49.860 --> 07:51.000
LSA type.

126
07:51.000 --> 07:54.000
So you specify it by the names I gave us earlier.

127
07:54.000 --> 08:00.000
So we could say summary network router and so on.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

128
08:00.000 --> 08:05.000
We also get some more detailed information by adding the keyword internal.

129
08:05.000 --> 08:07.000
We'll be taking a look at this as well.

130
08:07.000 --> 08:12.010
Now, of course, the database is used to build a topology and we can look at the

131
08:12.010 --> 08:16.000
topology directly that's been built off the database.

132
08:16.000 --> 08:20.000
Once again, we can get some more information by using internal.

133
08:20.000 --> 08:22.000
Then we have some really good debuggs.

134
08:22.000 --> 08:26.000
First, we have debug IP OSPF packet.

135
08:26.000 --> 08:31.730
Very useful command. However, be aware that on a production network with a lot
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

135
08:26.000 --> 08:31.730
Very useful command. However, be aware that on a production network with a lot

136
08:31.730 --> 08:35.000
of OSPF neighbors and fast OSPF timers.

137
08:35.000 --> 08:39.000
This could actually create a decent amount of debugging information.

138
08:39.000 --> 08:43.000
So this one you want to use with a little bit of caution in a lab.

139
08:43.000 --> 08:45.000
It's going to be fine in production.

140
08:45.000 --> 08:46.000
Be careful.

141
08:46.000 --> 08:51.910
Debug IP OSPF adjacency is supposed to show us things that prevent OSPF adjac

142
08:51.910 --> 08:54.000
encies from occurring.

143
08:54.000 --> 08:59.440
However, if I'm being perfectly honest, there's a lot of things about adjac

144
08:59.440 --> 09:03.000
encies that this debug actually misses.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

144
08:59.440 --> 09:03.000
encies that this debug actually misses.

145
09:03.000 --> 09:07.000
So this debug by itself is often not enough.

146
09:07.000 --> 09:13.150
I find that anything that adjacencies doesn't show you is usually going to be

147
09:13.150 --> 09:16.000
shown by the debug IP OSPF hello.

148
09:16.000 --> 09:22.860
This one is useful in conjunction with adjacency. So between packet adjacency

149
09:22.860 --> 09:27.320
and hello, you should be able to find out what is preventing your OSPF

150
09:27.320 --> 09:30.000
neighborships from coming online.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

151
09:30.000 --> 09:36.180
So in this video, we just jumped in and got what was hopefully a reminder about

152
09:36.180 --> 09:42.060
all the different OSPF attributes, such as what needs to match or not match for

153
09:42.060 --> 09:46.000
OSPF neighborships, the different LSA types, the different area types,

154
09:46.000 --> 09:48.000
different network types and so on.

155
09:48.000 --> 09:53.110
And then of course we wrapped up here with some good tools to keep handy as we

156
09:53.110 --> 09:58.340
move into our next video, where we're going to actually be doing some troubles

157
09:58.340 --> 10:00.000
hooting with OSPF.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

158
10:00.000 --> 10:09.660
[BLANK_AUDIO]
