WEBVTT

1
00:00.000 --> 00:03.850
So one of the strategies of getting network time protocols said that correctly

2
00:03.850 --> 00:05.500
is to have a good game plan.

3
00:05.500 --> 00:08.600
So here's what I propose we do for our initial game plan.

4
00:08.600 --> 00:14.600
Let's configure R1 and R2 as top level NTP servers.

5
00:14.600 --> 00:18.200
Now one way of doing that would be to have them connected to an atomic clock.

6
00:18.200 --> 00:20.400
In fact, let's talk about stratum for a moment.

7
00:20.400 --> 00:24.650
So if we are connected to an authoritative time source, for example, an atomic

8
00:24.650 --> 00:25.500
clock or similar,

9
00:25.500 --> 00:27.500
that's considered to be stratum zero.

10
00:27.500 --> 00:31.500
So our router, if we're connected to stratum zero, we would be effectively one
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

10
00:27.500 --> 00:31.500
So our router, if we're connected to stratum zero, we would be effectively one

11
00:31.500 --> 00:32.200
worse than that.

12
00:32.200 --> 00:33.700
That'd be a stratum one.

13
00:33.700 --> 00:38.080
So if our time source in the cloud was a stratum zero, we would be a stratum

14
00:38.080 --> 00:38.500
one.

15
00:38.500 --> 00:44.140
And then if we were a server serving the time down to R3, then R3 would be a

16
00:44.140 --> 00:45.100
stratum two

17
00:45.100 --> 00:47.200
because it's learning the time from stratum one.

18
00:47.200 --> 00:50.800
And that's our three was serving the time down to R5.

19
00:50.800 --> 00:54.000
R5 because it's learning the time from stratum two would be a stratum three.

20
00:54.000 --> 00:56.300
And that would just continue every hop along the way.

21
00:56.300 --> 01:01.200
Think of it like number of hops away from the actual authoritative time source.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

21
00:56.300 --> 01:01.200
Think of it like number of hops away from the actual authoritative time source.

22
01:01.200 --> 01:03.200
So in the lab environment, it helps simulate that.

23
01:03.200 --> 01:08.700
I'm going to go ahead and force R1 and R2 to be a stratum one server.

24
01:08.700 --> 01:13.660
And the syntax for that is in configuration mode, use the command NTP space

25
01:13.660 --> 01:14.300
master

26
01:14.300 --> 01:16.000
and then the stratum number that you want them to be.

27
01:16.000 --> 01:19.830
So we want these both to be a stratum number one, for example, a pretty trusted

28
01:19.830 --> 01:21.000
source for time,

29
01:21.000 --> 01:23.400
which is to use that command and global config and boom.

30
01:23.400 --> 01:27.380
Both these routers are going to believe their local time that's currently

31
01:27.380 --> 01:27.800
configured.

32
01:27.800 --> 01:29.500
They're going to consider it authoritative.

33
01:29.500 --> 01:33.000
And once that's set up, we can then use them as servers to pass on the time
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

33
01:29.500 --> 01:33.000
And once that's set up, we can then use them as servers to pass on the time

34
01:33.000 --> 01:35.100
down to R3 and R4 and et cetera.

35
01:35.100 --> 01:40.400
So we're going to start there with making R1 and R2 and NTP stratum level one

36
01:40.400 --> 01:41.800
time server for NTP.

37
01:41.800 --> 01:43.100
So we're going to use the lab environment.

38
01:43.100 --> 01:46.100
I have a lab prepared for you at the tail end of the set of videos.

39
01:46.100 --> 01:49.870
So for now, I'm going to double click here on the lab topology to take a look

40
01:49.870 --> 01:50.600
at our topology.

41
01:50.600 --> 01:52.300
And there it is. Great, great, great.

42
01:52.300 --> 01:55.420
And most of our work we're going to do from server one, which has console

43
01:55.420 --> 01:58.100
access to all of these devices in our network.

44
01:58.100 --> 02:01.700
So we'll go ahead and double click on server one to open that up.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

44
01:58.100 --> 02:01.700
So we'll go ahead and double click on server one to open that up.

45
02:01.700 --> 02:03.300
And we'll give that a moment or two to come up.

46
02:03.300 --> 02:04.900
Awesome, there it is.

47
02:04.900 --> 02:08.900
And let's go ahead and start here on router ones.

48
02:08.900 --> 02:10.600
And with our one selected, let's do a few commands.

49
02:10.600 --> 02:13.600
Let's do a show NTP status and press enter.

50
02:13.600 --> 02:15.400
And currently we don't have NTP configured yet.

51
02:15.400 --> 02:18.500
Let's also show NTP associations.

52
02:18.500 --> 02:21.570
And again, because we don't have a configured yet, this is not going to show

53
02:21.570 --> 02:22.300
anything useful.

54
02:22.300 --> 02:25.400
However, on our one, I do have a debug currently running.

55
02:25.400 --> 02:30.500
So if we do a show debug press enter, I'm doing debug NTP everything.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

55
02:25.400 --> 02:30.500
So if we do a show debug press enter, I'm doing debug NTP everything.

56
02:30.500 --> 02:34.200
Same as this pen right here, debug NTP all.

57
02:34.200 --> 02:37.300
So if you don't want to debug on, you can turn off with an undibug all.

58
02:37.300 --> 02:41.050
I just want the debug on initially so we can see the activity behind the scenes

59
02:41.050 --> 02:42.700
as NTP jumps to life.

60
02:42.700 --> 02:45.570
So if we want to make this router an NTP server, we simply go into

61
02:45.570 --> 02:48.400
configuration mode and type in NTP master.

62
02:48.400 --> 02:51.400
Space question mark and then specify the stratum number.

63
02:51.400 --> 02:55.510
So I'm going to use one based on our game plan press enter and take a look at

64
02:55.510 --> 02:56.300
the debug.

65
02:56.300 --> 03:00.400
So it's effectively enabled NTP functionality on all of its interfaces.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

65
02:56.300 --> 03:00.400
So it's effectively enabled NTP functionality on all of its interfaces.

66
03:00.400 --> 03:03.900
It's also using a loop address of 127 as reachable.

67
03:03.900 --> 03:05.300
It can reach itself.

68
03:05.300 --> 03:08.620
And it's also says I'm synchronized because you just believe the time that it

69
03:08.620 --> 03:09.500
currently has.

70
03:09.500 --> 03:13.900
So now if we did a show NTP status and press enter.

71
03:13.900 --> 03:15.900
So there's our command right there.

72
03:15.900 --> 03:18.400
And showing the clock is synchronized to itself.

73
03:18.400 --> 03:19.800
It's a stratum one.

74
03:19.800 --> 03:23.920
The reference is local means not referring to some other NTP source and has

75
03:23.920 --> 03:28.550
other details around the offset and the reference time as well as the pole

76
03:28.550 --> 03:29.100
interval.

77
03:29.100 --> 03:32.300
So let's go ahead and do the same thing for router two.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

77
03:29.100 --> 03:32.300
So let's go ahead and do the same thing for router two.

78
03:32.300 --> 03:37.800
So we'll go to router two to show NTP status and show NTP associations.

79
03:37.800 --> 03:38.400
Nothing there.

80
03:38.400 --> 03:42.460
So we'll go into configuration mode and do an NTP master and we'll go to str

81
03:42.460 --> 03:44.300
atum of one and we are good to go.

82
03:44.300 --> 03:45.300
There's no debug on here.

83
03:45.300 --> 03:47.300
So it doesn't have a whole bunch of details behind the scenes.

84
03:47.300 --> 03:51.880
But if we now do a show NTP status press center, it says it's synchronized

85
03:51.880 --> 03:53.400
pretty easy to synchronize to yourself.

86
03:53.400 --> 03:57.950
Just believe your local clock and we do a show NTP associations and press

87
03:57.950 --> 03:58.500
center.

88
03:58.500 --> 04:01.300
It shows we're synchronizing effectively with the 127 to rest.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

88
03:58.500 --> 04:01.300
It shows we're synchronizing effectively with the 127 to rest.

89
04:01.300 --> 04:02.100
That's our loop back.

90
04:02.100 --> 04:05.330
So here in the address college showing who it's synchronizing with it synchron

91
04:05.330 --> 04:06.600
izing with itself effectively.

92
04:06.600 --> 04:09.500
The little till the symbol right there represents that it's reachable.

93
04:09.500 --> 04:13.900
So it's not unexpected that we could reach ourselves if we are the NTP server.

94
04:13.900 --> 04:17.480
The reference clock refers to how this server is getting its time and it's

95
04:17.480 --> 04:18.400
getting it locally.

96
04:18.400 --> 04:23.270
So if there was an external clock at IP address or GPS or atomic clock that

97
04:23.270 --> 04:24.900
would be referred to here.

98
04:24.900 --> 04:26.700
So the ST is in reference to stratum.

99
04:26.700 --> 04:29.950
So up here it shows a stratum level of one because we're getting the time from

100
04:29.950 --> 04:32.400
our local system or local clock.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

100
04:29.950 --> 04:32.400
our local system or local clock.

101
04:32.400 --> 04:36.400
Our source of our time is considered to be a stratum level zero.

102
04:36.400 --> 04:40.380
In this column, the wind column, it shows how many seconds have passed since

103
04:40.380 --> 04:42.900
the last time the NTP server was pulled by the router.

104
04:42.900 --> 04:46.740
So even though we're getting the time locally, if we did it again, as far as

105
04:46.740 --> 04:47.300
the output,

106
04:47.300 --> 04:51.400
it was now seven seconds ago when it pulled itself effectively for the time.

107
04:51.400 --> 04:53.100
Here is the pull interval.

108
04:53.100 --> 04:54.900
Here is the reachability status.

109
04:54.900 --> 04:58.800
So a 377 means that the NTP server that we're referring to.

110
04:58.800 --> 05:00.800
In this case, our local clock is reachable.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

110
04:58.800 --> 05:00.800
In this case, our local clock is reachable.

111
05:00.800 --> 05:04.990
The delay represents a round trip delay and because the clock is local on this

112
05:04.990 --> 05:06.500
router, there is no delay.

113
05:06.500 --> 05:10.040
And the offset is the time difference in milliseconds between the router's

114
05:10.040 --> 05:10.700
current time

115
05:10.700 --> 05:13.200
and the time provided by the NTP server.

116
05:13.200 --> 05:16.100
And the DASP is a shortcut for dispersion.

117
05:16.100 --> 05:20.330
It's basically an estimate of the error or the variance in milliseconds between

118
05:20.330 --> 05:22.100
the router and the NTP server.

119
05:22.100 --> 05:26.400
So even though we're getting the time directly from our own local clock,

120
05:26.400 --> 05:31.400
you notice up here it showed 30,937 in change and here it's showing 0.233.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

120
05:26.400 --> 05:31.400
you notice up here it showed 30,937 in change and here it's showing 0.233.

121
05:31.400 --> 05:34.600
And if we did the upper key to show NTP associations again,

122
05:34.600 --> 05:41.700
after several pulling intervals, the dispersion went from 3000 down to 0.233.

123
05:41.700 --> 05:43.100
And it looks like that's where it's staying.

124
05:43.100 --> 05:45.600
And over on the far left, we have a few symbols that might show up as well.

125
05:45.600 --> 05:50.000
So the asterisk represents the current NTP server that we are synchronized with

126
05:50.000 --> 05:50.000
.

127
05:50.000 --> 05:53.490
If there was a pound symbol in front of it that would indicate that the NTP

128
05:53.490 --> 05:55.000
server is not reliable

129
05:55.000 --> 05:57.100
and regarding synchronization, it would ignore it.

130
05:57.100 --> 05:59.700
The plus symbol would indicate that it is a candidate for synchronization,

131
05:59.700 --> 06:02.700
but it's not currently the primary source for synchronization.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

131
05:59.700 --> 06:02.700
but it's not currently the primary source for synchronization.

132
06:02.700 --> 06:06.000
And until the on the far left represents that it's reachable.

133
06:06.000 --> 06:09.390
And we can see more detail with that same command by just doing a show NTP

134
06:09.390 --> 06:10.700
associations detail.

135
06:10.700 --> 06:13.760
So we'll press center and that gives us even more detail regarding our

136
06:13.760 --> 06:14.600
associations.

137
06:14.600 --> 06:18.300
Now NTP is communicated with UTC, universal time coordinated.

138
06:18.300 --> 06:21.700
And if you want to see the local time difference on your local routers,

139
06:21.700 --> 06:24.500
you just want to use the command to say, please show the offset.

140
06:24.500 --> 06:28.500
So right here, for example, on our one and our two, let's go back to our one.

141
06:28.500 --> 06:30.400
We did a let me do an undibug all.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

141
06:28.500 --> 06:30.400
We did a let me do an undibug all.

142
06:30.400 --> 06:35.900
And if we did a show, flock press center, that's going to show us in UTC time.

143
06:35.900 --> 06:38.700
If we wanted to change that, we could go into configuration mode and somebody

144
06:38.700 --> 06:41.100
use the command clock time zone

145
06:41.100 --> 06:45.000
and then a label and then the offset that you want from UTC.

146
06:45.000 --> 06:50.500
So I happen to be in the United States using Pacific time zone and based on

147
06:50.500 --> 06:52.500
when daylight savings is or isn't,

148
06:52.500 --> 06:55.300
it may be off by an hour, but I'm going to go ahead and do a dash seven.

149
06:55.300 --> 07:00.090
And now if we do a show clock, it's now showing it as 1333 based on the offset
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

149
06:55.300 --> 07:00.090
And now if we do a show clock, it's now showing it as 1333 based on the offset

150
07:00.090 --> 07:00.300
of

151
07:00.300 --> 07:02.000
dash seven that I just specified.

152
07:02.000 --> 07:05.600
So I'm going to go ahead and use that command across all the routers and that

153
07:05.600 --> 07:07.000
way I have that consistency there.

154
07:07.000 --> 07:10.360
So to do that here in the lab, we can go ahead and click on this little icon up

155
07:10.360 --> 07:12.300
here and that brings up a little window.

156
07:12.300 --> 07:13.700
I'll do a paste.

157
07:13.700 --> 07:18.320
I'll also add a config T on top of that and then end below that and I'll select

158
07:18.320 --> 07:20.200
all and then I'll unselect our PCs

159
07:20.200 --> 07:22.000
because they aren't going to understand that command.

160
07:22.000 --> 07:26.080
So this command is effectively going to set the local time zone on all eight

161
07:26.080 --> 07:26.600
routers.

162
07:26.600 --> 07:29.000
So we'll click here on send script and it's done.

163
07:29.000 --> 07:32.700
Also, just for grants, I'd like to go ahead and look at the clocks on all the
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

163
07:29.000 --> 07:32.700
Also, just for grants, I'd like to go ahead and look at the clocks on all the

164
07:32.700 --> 07:33.000
routers.

165
07:33.000 --> 07:36.500
Let's do a show clock and then we'll go ahead and send that to every router

166
07:36.500 --> 07:40.800
except for PC one PC seven and PC eight because they're not routers.

167
07:40.800 --> 07:43.400
We'll click on send script as we look at the time.

168
07:43.400 --> 07:49.000
So our ones is 1335 are two 1335 are three 1336.

169
07:49.000 --> 07:53.400
So the time isn't perfectly synchronized across all these routers, but they're

170
07:53.400 --> 07:54.500
all pretty close.

171
07:54.500 --> 07:59.620
So for fun, I'm going to take our one and I'm going to set a slightly different

172
07:59.620 --> 08:00.200
time.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

172
07:59.620 --> 08:00.200
time.

173
08:00.200 --> 08:04.410
So let's do a show clock on our one 1336 and let's go ahead and set this maybe

174
08:04.410 --> 08:06.000
like 20 minutes off.

175
08:06.000 --> 08:09.900
So do that with a clock and a space question mark to make sure on the right

176
08:09.900 --> 08:11.100
track and let's do a 13.

177
08:11.100 --> 08:12.300
Let's add 20 minutes.

178
08:12.300 --> 08:17.400
So 1356 0 0 and I'll still say it's October 16th.

179
08:17.400 --> 08:19.300
Oops, I will type of there and fix that.

180
08:19.300 --> 08:23.100
So colon 0 0 October 16th 2024.

181
08:23.100 --> 08:27.000
So I'm just going to modify it by about 20 minutes and press enter.

182
08:27.000 --> 08:31.580
And if we do a show NTB status, it still thinks it's saying anything still good
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

182
08:27.000 --> 08:31.580
And if we do a show NTB status, it still thinks it's saying anything still good

183
08:31.580 --> 08:31.800
.

184
08:31.800 --> 08:34.600
Trust is local clock, but it's clock is a little faster than the other.

185
08:34.600 --> 08:38.800
So in our next step, what we can do is we can go ahead and make, for example,

186
08:38.800 --> 08:40.600
let's go look at our topology for a moment.

187
08:40.600 --> 08:46.600
Let's make our three a client of our one and we'll make our four a client of

188
08:46.600 --> 08:51.100
our two and then we can verify that they can synchronize their time and we

189
08:51.100 --> 08:53.000
should also notice that the time on our three.

190
08:53.000 --> 08:56.470
Should be bumped up about 20 minutes once that synchronization is completely

191
08:56.470 --> 08:56.900
done.

192
08:56.900 --> 09:01.500
So let's go to our three and let's make our three an NTB client to our one.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

192
08:56.900 --> 09:01.500
So let's go to our three and let's make our three an NTB client to our one.

193
09:01.500 --> 09:03.500
So that will do a first access to this.

194
09:03.500 --> 09:05.200
Let's do a show NTP status.

195
09:05.200 --> 09:06.800
Make sure we don't have a configured yet, right?

196
09:06.800 --> 09:11.890
We want a configuration mode and to set up our one as our NTP server, we type

197
09:11.890 --> 09:14.000
an NTP server and then the IP address.

198
09:14.000 --> 09:18.580
Now, because our one has multiple interfaces and has a loop back, it'd be wise

199
09:18.580 --> 09:21.820
to point to the loop back interface instead of a physical interface address

200
09:21.820 --> 09:22.900
because if we lose a file,

201
09:22.900 --> 09:26.480
the physical interface, then we're pointing to that physical interface, we're

202
09:26.480 --> 09:29.000
no longer going to get our NTP request answered.

203
09:29.000 --> 09:33.550
So let's go ahead and point to our one's loop back address at one dot one dot
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

203
09:29.000 --> 09:33.550
So let's go ahead and point to our one's loop back address at one dot one dot

204
09:33.550 --> 09:34.300
one dot one.

205
09:34.300 --> 09:37.800
And this also source it from our loop back in our three.

206
09:37.800 --> 09:41.420
And that way, even if we lose an interface, we can still communicate out

207
09:41.420 --> 09:45.630
existing remaining interfaces once the routing is converged and still reach our

208
09:45.630 --> 09:46.500
NTP server.

209
09:46.500 --> 09:49.650
So for the NTP server, we'll put in one dot one dot one dot one dot one and we

210
09:49.650 --> 09:51.000
'll use a space question mark.

211
09:51.000 --> 09:55.170
Then we're going to say source to specify our source interface and that's going

212
09:55.170 --> 09:59.000
to be loop back zero, which is our three dot three three address.

213
09:59.000 --> 10:02.570
And there's a few other options as well, including the minimum and maximum poll
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

213
09:59.000 --> 10:02.570
And there's a few other options as well, including the minimum and maximum poll

214
10:02.570 --> 10:03.300
intervals.

215
10:03.300 --> 10:05.500
So I'm going to say the minimum poll interval is four.

216
10:05.500 --> 10:09.810
So what that means is two to the power of four to four eight sixteen and I'm

217
10:09.810 --> 10:14.400
also going to specify the max poll interval of four, which is also going to be

218
10:14.400 --> 10:16.400
two to the power of four, which is sixteen space.

219
10:16.400 --> 10:20.400
And then there's also an option for burst.

220
10:20.400 --> 10:21.900
Now burst is on by default.

221
10:21.900 --> 10:26.170
And what the intent there is that we're going to send multiple requests to our

222
10:26.170 --> 10:30.100
NTP servers instead of just one periodically and that should help us to
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

222
10:26.170 --> 10:30.100
NTP servers instead of just one periodically and that should help us to

223
10:30.100 --> 10:31.900
synchronize more quickly.

224
10:31.900 --> 10:33.300
So that's the syntax we're going to use.

225
10:33.300 --> 10:36.900
If we're going to use a key for authentication, we can specify key.

226
10:36.900 --> 10:40.930
If we wanted to specify prefer that keyword that would indicate which of our N

227
10:40.930 --> 10:43.900
TP servers we prefer if we have multiple configured.

228
10:43.900 --> 10:47.640
So now that we've done that, let's do a show NTP status press center and it

229
10:47.640 --> 10:48.900
says synchronized.

230
10:48.900 --> 10:52.140
Now, if I had done that a few moments earlier, it would very likely would have

231
10:52.140 --> 10:55.190
shown that it was not synchronized until I had a few moments to go back and

232
10:55.190 --> 10:56.900
forth and synchronized the time.

233
10:56.900 --> 10:59.400
So it's considering itself stratum two.

234
10:59.400 --> 11:03.050
That's because our reference time server, our one is a stratum one is showing
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

234
10:59.400 --> 11:03.050
That's because our reference time server, our one is a stratum one is showing

235
11:03.050 --> 11:06.260
here the reference servers address of one dot one dot one dot one with

236
11:06.260 --> 11:07.900
additional details as well.

237
11:07.900 --> 11:11.380
So if we did the upper key to show NTP status is still synchronized and

238
11:11.380 --> 11:15.050
sometimes you may notice it may go into synchronization and it may go out

239
11:15.050 --> 11:18.900
initially as it's starting to synchronize and get itself dialed in.

240
11:18.900 --> 11:23.020
So once NTP is in place correctly and the master clock isn't, you know,

241
11:23.020 --> 11:26.900
changing widely back and forth and as trusted, we should have synchronization.

242
11:26.900 --> 11:29.900
We can also do a show NTP associations of breast center.

243
11:29.900 --> 11:33.740
The till the shows us that we have reachability to our NTP server at one dot
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

243
11:29.900 --> 11:33.740
The till the shows us that we have reachability to our NTP server at one dot

244
11:33.740 --> 11:34.900
one dot one dot one.

245
11:34.900 --> 11:40.020
That server is getting its time from local, meaning itself that server is a str

246
11:40.020 --> 11:40.900
atum one.

247
11:40.900 --> 11:42.900
And here's our value for reach.

248
11:42.900 --> 11:45.490
And as we have more polls that go out, if we get the upper key and do that

249
11:45.490 --> 11:50.040
again, that value should increase to the maximum of 377, which means fully

250
11:50.040 --> 11:50.900
reachable.

251
11:50.900 --> 11:53.900
Here is the round trip delay of 55 milliseconds.

252
11:53.900 --> 11:57.950
And here is the current offset, which is the time difference in milliseconds

253
11:57.950 --> 12:01.900
between the routers current time and the time provided by the NTP server.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

253
11:57.950 --> 12:01.900
between the routers current time and the time provided by the NTP server.

254
12:01.900 --> 12:04.830
So a super small offset means that the router clock is closely synchronized

255
12:04.830 --> 12:07.900
with servers clock and we're going to this little minus sign right there.

256
12:07.900 --> 12:09.900
That means that this router is behind a little bit.

257
12:09.900 --> 12:13.900
If it was a plus symbol, you mean our time on this local router is ahead.

258
12:13.900 --> 12:17.690
So if we hit the upper key and did it again, you'll notice that offset is

259
12:17.690 --> 12:19.900
changing and it's getting smaller.

260
12:19.900 --> 12:24.200
So we were about 1.9 seconds off, meaning behind the NTP server and now we're

261
12:24.200 --> 12:28.900
108 milliseconds off, which is close to a tenth of a second.

262
12:28.900 --> 12:32.700
And if we hit the upper key again, and we give it more time, it's also likely
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

262
12:28.900 --> 12:32.700
And if we hit the upper key again, and we give it more time, it's also likely

263
12:32.700 --> 12:35.900
to go lower as it gets closer and closer to being synchronized.

264
12:35.900 --> 12:40.790
And if we did a show NTP associations detail press center, again, that we get

265
12:40.790 --> 12:43.900
as further details about our association with our NTP server.

266
12:43.900 --> 12:49.860
So we have a server configured at 1.1.1.1.1. It's sane and valid, effectively

267
12:49.860 --> 12:51.900
meaning that its time isn't drastically swinging back and forth.

268
12:51.900 --> 12:55.360
There's our pull interval with our delay and offset and other information here

269
12:55.360 --> 12:55.900
as well.

270
12:55.900 --> 13:01.250
So if we were to take a look at the time on R1 and its client R3, in fact, let
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

270
12:55.900 --> 13:01.250
So if we were to take a look at the time on R1 and its client R3, in fact, let

271
13:01.250 --> 13:01.900
's do it right here.

272
13:01.900 --> 13:06.900
We'll use this little icon and let's do a show that gives us some space here

273
13:06.900 --> 13:10.730
and then we'll do a show clock and then we'll go ahead and run this on R1 and R

274
13:10.730 --> 13:12.900
3 and we'll click on Send Script.

275
13:12.900 --> 13:14.900
They should have a very close time.

276
13:14.900 --> 13:19.900
So R3 is in the 14.08 range and R1 is also very close to that as well.

277
13:19.900 --> 13:24.900
Where if we went to R2 and we did a show clock press center, it's showing 13.50

278
13:24.900 --> 13:29.160
and that's because we changed the clock on R1 to be in the future about 20

279
13:29.160 --> 13:29.900
minutes.

280
13:29.900 --> 13:33.900
So let's take the next step and let's make R4 a client of R2.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

280
13:29.900 --> 13:33.900
So let's take the next step and let's make R4 a client of R2.

281
13:33.900 --> 13:39.570
So we'll get R4 and on R4, let's go ahead and do a show NTP status, not set up

282
13:39.570 --> 13:39.900
yet.

283
13:39.900 --> 13:42.900
Great, we'll do a NTP server.

284
13:42.900 --> 13:45.900
Let's use the loopback of 2222 up on R2.

285
13:45.900 --> 13:50.900
We'll say source is our own loopback 0 which is our address of 4444.

286
13:50.900 --> 13:55.830
Let's also set up the min pull time of 4 and next it means 2 to the power of 4

287
13:55.830 --> 13:59.900
which is 16 and a max pull of also 4.

288
13:59.900 --> 14:02.920
And let's go ahead and use the keyword of burst, although that's by default, it
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

288
13:59.900 --> 14:02.920
And let's go ahead and use the keyword of burst, although that's by default, it

289
14:02.920 --> 14:03.900
's going to be there.

290
14:03.900 --> 14:08.000
And to confirm we can do a do, show, run, pipe, include and let's go ahead and

291
14:08.000 --> 14:08.900
type in NTP.

292
14:08.900 --> 14:11.900
So anything that's default, oops, it's not include.

293
14:11.900 --> 14:12.900
So let's go ahead and say include.

294
14:12.900 --> 14:15.900
So anything that's a default is not going to show up in the output.

295
14:15.900 --> 14:20.960
So as far as the defaults, the burst is a default and the min pull of 4 is also

296
14:20.960 --> 14:21.900
a default.

297
14:21.900 --> 14:25.080
So the max pull of 4 wasn't a default and that's why it's showing up in the

298
14:25.080 --> 14:25.900
output here.

299
14:25.900 --> 14:29.900
So if we do a show NTP status press center, it shows that it's unsynchronized

300
14:29.900 --> 14:31.900
and a stratum of 16.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

300
14:29.900 --> 14:31.900
and a stratum of 16.

301
14:31.900 --> 14:33.900
So currently it's got a ways to go to synchronize.

302
14:33.900 --> 14:35.900
So we do a show NTP associations.

303
14:35.900 --> 14:38.900
It can confirm for us that we are configured.

304
14:38.900 --> 14:43.050
So the tilde of the represents we have full connectivity to the server 2222 who

305
14:43.050 --> 14:44.900
's getting its time from its local self.

306
14:44.900 --> 14:45.900
It's a stratum 1 server.

307
14:45.900 --> 14:50.030
And if we hit the upper okay a couple times this show NTP status is still unsyn

308
14:50.030 --> 14:51.900
chronized, but I believe it's getting closer.

309
14:51.900 --> 14:52.900
In fact, let's do this.

310
14:52.900 --> 14:55.900
Let's do a debug NTP off and let's take a look.

311
14:55.900 --> 14:58.870
In fact, let's also go ahead and remove the config and put it back so we can

312
14:58.870 --> 14:59.900
see the play by play.

313
14:59.900 --> 15:05.900
So let's do a do show run include NTP and I'll do a no in front of that.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

313
14:59.900 --> 15:05.900
So let's do a do show run include NTP and I'll do a no in front of that.

314
15:05.900 --> 15:06.900
Oh, look at that.

315
15:06.900 --> 15:10.900
So it just said clock synchronized with the NTP server.

316
15:10.900 --> 15:13.900
So I am not going to remove that and have it come back back.

317
15:13.900 --> 15:13.900
You know what?

318
15:13.900 --> 15:15.900
Let's just watch it again with the debug.

319
15:15.900 --> 15:22.990
So we'll do a no and I want NTP server 2222 and then we'll do a NTP server 2222

320
15:22.990 --> 15:27.890
source loop back zero and we'll go ahead and use keyword burst and press center

321
15:27.890 --> 15:27.900
.

322
15:27.900 --> 15:28.900
All right.

323
15:28.900 --> 15:31.900
So let me go ahead and turn off the debug here real quick.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

323
15:28.900 --> 15:31.900
So let me go ahead and turn off the debug here real quick.

324
15:31.900 --> 15:36.330
We'll do a do an all and as I was going through these debug earlier, I saw this

325
15:36.330 --> 15:37.900
really fun one right here popcorn popcorn.

326
15:37.900 --> 15:41.900
So, but what that means is not quite synchronized yet.

327
15:41.900 --> 15:42.900
So that's what that means like that.

328
15:42.900 --> 15:44.900
Why did they put that there?

329
15:44.900 --> 15:45.900
So someone had a sense of humor.

330
15:45.900 --> 15:49.110
So popcorn popcorn means it's still synchronizing and right there that last

331
15:49.110 --> 15:51.900
message right there indicates that it's now synchronized.

332
15:51.900 --> 15:57.960
So if we do a show NTP status press center here, showing us status of

333
15:57.960 --> 16:01.260
synchronized and we are stratum 2 and that's because we're synchronized to a
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

333
15:57.960 --> 16:01.260
synchronized and we are stratum 2 and that's because we're synchronized to a

334
16:01.260 --> 16:01.900
stratum 1 server.

335
16:01.900 --> 16:06.250
We can verify that with a show NTP associations press center and that confirms

336
16:06.250 --> 16:10.080
were synced up with a stratum 1 server and for more information that we can do

337
16:10.080 --> 16:13.900
a show NTP association detail and press center.

338
16:13.900 --> 16:18.020
So if we look at the clocks here on our two and our four, they should be very,

339
16:18.020 --> 16:20.730
very close. So we'll go ahead and use the tool here to then that command our

340
16:20.730 --> 16:21.900
two and our four at the same time.

341
16:21.900 --> 16:26.900
Let's do a show clock and then we'll send that to our two and our four.

342
16:26.900 --> 16:31.390
They're both selected will click on send script and there's our four 1357 and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

342
16:26.900 --> 16:31.390
They're both selected will click on send script and there's our four 1357 and

343
16:31.390 --> 16:35.670
our two 1357 extremely close to each other because our two is the server and

344
16:35.670 --> 16:37.900
our four is synchronized to our two.

345
16:37.900 --> 16:43.130
Now another option we have with NTP is the option of today of NTP peers. Now

346
16:43.130 --> 16:46.670
the benefit of that is that if we lose our more authoritative time servers like

347
16:46.670 --> 16:50.990
for example stratum 2 or stratum 1 server, we can have our devices running NTP

348
16:50.990 --> 16:51.900
peering with each other.

349
16:51.900 --> 16:55.560
So at least they're not completely cut off from any option of learning and

350
16:55.560 --> 16:57.900
hopefully correcting to the accurate time.

351
16:57.900 --> 17:02.900
So I'll walk into configuring and verifying NTP peers in the very next video.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

351
16:57.900 --> 17:02.900
So I'll walk into configuring and verifying NTP peers in the very next video.

352
17:02.900 --> 17:04.900
So see you there in just a moment.
