WEBVTT

1
00:00.000 --> 00:05.200
So currently we have R1 and R2 as NTP servers at Stratum 1.

2
00:05.200 --> 00:09.680
We have R3 as they client to R1 and R4 as they client over to R2.

3
00:09.680 --> 00:14.800
So if we had R1 and R2 synchronizing with some external atomic clocks or time

4
00:14.800 --> 00:15.520
servers out on the

5
00:15.520 --> 00:19.770
internet that were Stratum 0, what happens if one of those is no longer

6
00:19.770 --> 00:20.640
available?

7
00:20.640 --> 00:23.280
We don't want those key servers to give up regarding time.

8
00:23.280 --> 00:27.120
We still want them to have a way of synchronize or if R3 and R4, if they lose

9
00:27.120 --> 00:27.680
connectivity,

10
00:27.680 --> 00:30.400
for example to R1 and R2.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

10
00:27.680 --> 00:30.400
for example to R1 and R2.

11
00:30.400 --> 00:35.520
So think of a peer as like a backup friend you can go to in the event that the

12
00:35.520 --> 00:36.080
time server that

13
00:36.080 --> 00:39.280
you are synchronizing with is no longer reachable.

14
00:39.280 --> 00:43.340
And that way these two devices can ask of the time of each other if they need

15
00:43.340 --> 00:43.760
to and then

16
00:43.760 --> 00:45.520
synchronize their time that way.

17
00:45.520 --> 00:49.120
So for the demo I'm going to go ahead and specify that R3 is going to be a peer

18
00:49.120 --> 00:50.160
with R4

19
00:50.160 --> 00:52.160
and R4 is going to appear with R3.

20
00:52.160 --> 00:56.720
Now because they're both getting their time from a Stratum 1 NTP server,

21
00:56.720 --> 00:59.840
they're going to actually start querying each other and actually believing the

22
00:59.840 --> 01:00.480
information from
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

22
00:59.840 --> 01:00.480
information from

23
01:00.480 --> 01:05.520
each other until they lose connectivity to their respective time servers at Str

24
01:05.520 --> 01:06.000
atum 1.

25
01:06.000 --> 01:09.440
And it'd be at that point that they start reaching out and asking for the time

26
01:09.440 --> 01:09.520
and

27
01:09.520 --> 01:11.360
synchronize the time with their peer.

28
01:11.360 --> 01:15.680
Think of it like a fault tolerance or a fallback method for making sure that we

29
01:15.680 --> 01:16.240
have the correct

30
01:16.240 --> 01:18.880
time even if our primary time servers fail.

31
01:18.880 --> 01:22.970
So with that in mind, let's head over to R3 and then R4 and we'll set them up

32
01:22.970 --> 01:24.400
as NTP peers.

33
01:24.400 --> 01:27.360
So back in the lab, let's go to R3.

34
01:27.360 --> 01:31.120
We'll start there and on R3, let's go ahead and do a show debug.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

34
01:27.360 --> 01:31.120
We'll start there and on R3, let's go ahead and do a show debug.

35
01:31.120 --> 01:34.080
And let's do a debug of NTP everything.

36
01:34.080 --> 01:38.400
So debug NTP all and I'll do the same thing on R4.

37
01:38.400 --> 01:40.480
We'll do a debug of NTP all.

38
01:40.480 --> 01:44.800
And let's also verify where we're at as far as NTP by going to R3.

39
01:44.800 --> 01:47.760
I'm doing a show NTP status.

40
01:47.760 --> 01:48.320
Fantastic.

41
01:48.320 --> 01:50.560
We're synchronized with the server at 1111.

42
01:50.560 --> 01:53.760
Let's also do a show NTP associations press center.

43
01:53.760 --> 01:58.480
Here it shows we are configured to use 1.1.1.1 as our time source and little

44
01:58.480 --> 01:59.360
asterisk here at the

45
01:59.360 --> 02:02.320
far left means that we're synchronizing with that server.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

45
01:59.360 --> 02:02.320
far left means that we're synchronizing with that server.

46
02:02.320 --> 02:02.720
All right.

47
02:02.720 --> 02:08.210
So to configure R4 as an NTP peer, in fact, let me go do a do on debug all and

48
02:08.210 --> 02:08.480
then we can look

49
02:08.480 --> 02:11.280
at the debug over on R4 if we need to.

50
02:11.280 --> 02:15.200
So here we'll do an NTP and instead of specifying server, we're going to go

51
02:15.200 --> 02:16.560
ahead and specify

52
02:16.560 --> 02:16.960
peer.

53
02:16.960 --> 02:19.680
That's this option right here.

54
02:19.680 --> 02:25.200
So NTP peer will put in the IP address of the loopback on R4, which is 4.4.4.

55
02:25.200 --> 02:27.680
We'll specify the source for our packet address.

56
02:27.680 --> 02:31.360
And over there is the IP address on our loopback zero interface.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

56
02:27.680 --> 02:31.360
And over there is the IP address on our loopback zero interface.

57
02:31.360 --> 02:35.230
So we'll put that in and then we can also go ahead and specify things like the

58
02:35.230 --> 02:35.520
men

59
02:35.520 --> 02:40.240
pull time on put four, which is which is two to the power four, which means 16

60
02:40.240 --> 02:40.960
and the max

61
02:40.960 --> 02:42.880
pull also at the same value.

62
02:42.880 --> 02:45.630
And I'm also going to say burst, even though I think it's on by default and we

63
02:45.630 --> 02:45.920
'll press

64
02:45.920 --> 02:49.200
center and then we'll do a similar treatment over at R4.

65
02:49.200 --> 02:55.010
So we'll go to R4 and on R4, we'll go config T and we'll type in NTP peer and

66
02:55.010 --> 02:55.600
put in 3,

67
02:55.600 --> 03:02.800
3, 3, 3, source, loopback zero, men timer, four and max timer, four for the lab
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

67
02:55.600 --> 03:02.800
3, 3, 3, source, loopback zero, men timer, four and max timer, four for the lab

68
03:02.800 --> 03:03.360
and then the keyword

69
03:03.360 --> 03:03.920
of burst.

70
03:03.920 --> 03:06.960
So now if we do this show, in fact, let me turn off debugging here as well.

71
03:06.960 --> 03:09.760
Do an unall as a show NTP status.

72
03:09.760 --> 03:11.920
So notice that we are still, oh, check it out.

73
03:11.920 --> 03:14.560
We got it during a decision point.

74
03:14.560 --> 03:16.960
So it is not synchronized at the moment.

75
03:16.960 --> 03:20.560
Let's give it a moment to go ahead and correct that will do a show NTP status.

76
03:20.560 --> 03:26.180
And while we're waiting for the synchronize will do a show NTP associations and

77
03:26.180 --> 03:26.800
press center.

78
03:26.800 --> 03:30.240
So here, you'll notice there's no asterisk on the left hand side.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

78
03:26.800 --> 03:30.240
So here, you'll notice there's no asterisk on the left hand side.

79
03:30.240 --> 03:34.000
So it knows about two, two, two, two, which is a stratum one server.

80
03:34.000 --> 03:37.360
It knows about three, three, three, three as a peer and it's a stratum two

81
03:37.360 --> 03:37.680
server.

82
03:37.680 --> 03:41.760
So after we give it a few more moments here, it should once again synchronize

83
03:41.760 --> 03:42.800
its clock back to two,

84
03:42.800 --> 03:46.200
two, two, and then also be aware that three, three, three, three exists as well

85
03:46.200 --> 03:46.400
.

86
03:46.400 --> 03:50.800
And let's go to our three and over here on our three with debugging not on list

87
03:50.800 --> 03:52.720
to a show NTP status,

88
03:52.720 --> 03:53.520
press center.

89
03:53.520 --> 03:56.720
And that guy is synchronized to the server at 1111.

90
03:56.720 --> 04:01.520
And if we do a show NTP associations and press center,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

90
03:56.720 --> 04:01.520
And if we do a show NTP associations and press center,

91
04:01.520 --> 04:06.640
here we have the asterisk next to the 1111 indicating that we are synchronized

92
04:06.640 --> 04:08.000
with that NTP server.

93
04:08.000 --> 04:11.980
However, we still have our four in the wings in case our primary server goes

94
04:11.980 --> 04:12.480
away.

95
04:12.480 --> 04:13.760
And we can synchronize with it.

96
04:13.760 --> 04:17.200
So let's go back to our four and one of the verify that our four is synced up.

97
04:17.200 --> 04:21.200
So let's show NTP status press center and it still says unsynchronized.

98
04:21.200 --> 04:22.720
So a couple options here.

99
04:22.720 --> 04:25.600
We could just wait, which is perfectly fine.

100
04:25.600 --> 04:29.920
If you want to do some debug like debug NTP all press center.

101
04:29.920 --> 04:31.760
We could look at the debug messages.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

101
04:29.920 --> 04:31.760
We could look at the debug messages.

102
04:31.760 --> 04:34.320
We could do a show NTP status.

103
04:34.320 --> 04:37.760
So we are communicating with R2.

104
04:37.760 --> 04:38.560
That's great.

105
04:38.560 --> 04:43.380
And at some point in time, we will synchronize once again with our primary NTP

106
04:43.380 --> 04:43.600
server,

107
04:43.600 --> 04:45.600
the stratum one server, which is part two.

108
04:45.600 --> 04:50.080
And another option is let's do a do undibug all as to a do show run include NTP

109
04:50.080 --> 04:50.400
.

110
04:50.400 --> 04:54.720
Now this part right here is really just to keep us busy while we're waiting for

111
04:54.720 --> 04:55.280
NTP to

112
04:55.280 --> 04:58.320
synchronize because by itself it will just synchronize.

113
04:58.320 --> 05:02.480
But if you're impatient or want to force it, one thing I've discovered over the
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

113
04:58.320 --> 05:02.480
But if you're impatient or want to force it, one thing I've discovered over the

114
05:02.480 --> 05:03.040
years is that

115
05:03.040 --> 05:06.480
if we take out the configuration, put it back in, that's often very helpful.

116
05:06.480 --> 05:08.160
So let's go ahead and do a no.

117
05:08.160 --> 05:12.560
And I'm going to take off the NTP server here, no NTP server at 222.

118
05:12.560 --> 05:16.160
And then I'll put it back in with the right click and we are back in business.

119
05:16.160 --> 05:18.800
Also, I didn't specify the min and max timers.

120
05:18.800 --> 05:23.680
So if we wanted to, we could go ahead and do that with a min of four and a max

121
05:23.680 --> 05:24.560
of four

122
05:24.560 --> 05:27.930
and versus on by default, but if it makes us feel better, we can try to force

123
05:27.930 --> 05:28.800
it that way

124
05:28.800 --> 05:30.400
and then just give it a little bit of time.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

124
05:28.800 --> 05:30.400
and then just give it a little bit of time.

125
05:30.400 --> 05:33.760
So again, if you did the debug of NTP all press center,

126
05:33.760 --> 05:37.120
that would help us identify what's going on that we're actually communicating

127
05:37.120 --> 05:37.680
back and forth

128
05:37.680 --> 05:40.240
with the respective other NTP devices.

129
05:40.240 --> 05:44.170
And once it says that the clock is synchronized, it'll also show up in the show

130
05:44.170 --> 05:45.120
NTP status

131
05:45.120 --> 05:49.040
that the clock is synchronized to the NTP server over at R2.

132
05:49.040 --> 05:53.040
So I'm going to do an debug all and show NTP status.

133
05:53.040 --> 05:53.760
Oh, there we go.

134
05:53.760 --> 05:54.880
Oh my gosh.

135
05:54.880 --> 05:58.000
We just turned off the debug before I got the message about synchronization.

136
05:58.000 --> 06:02.960
So we are now synchronized back to R2 and we do a show NTP associations and
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

136
05:58.000 --> 06:02.960
So we are now synchronized back to R2 and we do a show NTP associations and

137
06:02.960 --> 06:03.680
press center.

138
06:03.680 --> 06:07.280
Here we have the little asterisk indicating we are synchronized with a server

139
06:07.280 --> 06:10.260
and the tilde represents we have full communication back and forth with that

140
06:10.260 --> 06:10.640
device.

141
06:10.640 --> 06:14.600
And again, if we do a show NTP status, it'll confirm for us that we are

142
06:14.600 --> 06:15.520
synchronized with our

143
06:15.520 --> 06:16.080
server.

144
06:16.080 --> 06:18.960
So if you're working with a Cisco device and you're working with an NTP server,

145
06:18.960 --> 06:21.600
you'd want to make sure a few things are going your way.

146
06:21.600 --> 06:26.000
Number one, are the ports for NTP? Are they open and available?

147
06:26.000 --> 06:29.360
Meaning are we allowing UDP port 123?

148
06:29.360 --> 06:32.080
So if we went up to R1, for example, or R2,
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

148
06:29.360 --> 06:32.080
So if we went up to R1, for example, or R2,

149
06:32.080 --> 06:35.600
and we did a show control plane host open ports and press center,

150
06:35.600 --> 06:41.300
you'll notice that UDP port 123 is open in listen mode because we're acting as

151
06:41.300 --> 06:42.080
an NTP server.

152
06:42.080 --> 06:44.960
So we want to make sure if we have firewalls or anything else in place between

153
06:44.960 --> 06:45.840
our NTP clients

154
06:45.840 --> 06:48.960
and our NTP servers, we want to make sure that we're allowing those specific

155
06:48.960 --> 06:49.760
protocols through

156
06:49.760 --> 06:51.120
so NTP can operate.

157
06:51.120 --> 06:54.720
And we also want to incorporate some fault tolerance such as NTP peers and

158
06:54.720 --> 06:57.120
multiple NTP servers that we can communicate with.

159
06:57.120 --> 07:00.240
So if we have a failure of one device in our network, it's not going to ruin
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

159
06:57.120 --> 07:00.240
So if we have a failure of one device in our network, it's not going to ruin

160
07:00.240 --> 07:00.960
our time stamps

161
07:00.960 --> 07:01.760
across the board.

162
07:01.760 --> 07:05.460
So now that we looked at the NTP configuration as well as some confirmation

163
07:05.460 --> 07:06.240
that is working,

164
07:06.240 --> 07:09.760
in the next video, I'd like to put you, my friend, on a hands-on lab so you can

165
07:09.760 --> 07:10.560
get up close and

166
07:10.560 --> 07:14.490
personal hands-on practice and build your skills in working with the

167
07:14.490 --> 07:15.600
configuration

168
07:15.600 --> 07:18.480
and verification of network time protocol.

169
07:18.480 --> 07:21.760
So when you're ready, I'll see you in the next video in just a moment.
