10.3.4 Packet Tracer - Configure and Verify NTP Answers
Topology
Addressing Table
| Device | Interface | IP Address | Subnet Mask |
|---|---|---|---|
| N1 | NIC | 209.165.200.225 | 255.255.255.0 |
| R1 | G0/0 | 209.165.200.226 | 255.255.255.0 |
| R2 | G0/0 | 209.165.200.227 | 255.255.255.0 |
Objectives
In this activity, you will configure NTP on R1 and R2 to allow time synchronization.
Background / Scenario
Network Time Protocol (NTP) synchronizes the time of day among a set of distributed time servers and clients. While there are a number of applications that require synchronized time, this lab will focus on correlating events that are listed in the system log and other time-specific events from multiple network devices. NTP uses the User Datagram Protocol (UDP) as its transport protocol. All NTP communications use Coordinated Universal Time (UTC).
An NTP server usually receives its time from an authoritative time source, such as an atomic clock attached to a time server. The NTP server then distributes this time across the network. NTP is extremely efficient. No more than one packet per minute is necessary to synchronize two devices to within a millisecond of each other.
Instructions
Step 1: NTP Server
a. Server N1 is already configured as the NTP Server for this topology. Verify its configuration under Services > NTP.

b. From R1, ping N1 (209.165.200.225) to verify connectivity. The ping should be successful.
R1# ping 209.165.200.225
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.200.225, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/1/3 msc. Repeat the ping to N1 from R2 to verify connectivity to N1.
R2# ping 209.165.200.225
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.200.225, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 msStep 2: Configure the NTP Clients
Cisco devices can be configured to refer to an NTP server to use to synchronize their clocks. It is important to keep time consistent among all devices. Configure R1 and R2 as NTP clients so their clocks are synchronized. Both R1 and R2 will use N1 server as their NTP server.
a. Check the current NTP and clock settings as shown below:
R1# show ntp status %NTP is not enabled. R1# show clock detail *12:15:26.330 UTC Mon Mar 1 1993 Time source is hardware calendar
b. Configure R1 and R2 as NTP Clients. Use the ntp server command to specify an NTP server, as shown below:
R1(config)# ntp server 209.165.200.225
c. Repeat this configuration on R2.
R2(config)# ntp server 209.165.200.225
Step 3: Verify NTP settings
a. Check the clocks on R1 and R2 again to verify that they are synchronized:
R1:
R1# show clock detail
23:22:0.80 UTC Sat Oct 12 2019
Time source is NTPNote: When working on physical routers, allow a few minutes before R1 and R2 clocks are synchronized. With Packet Tracer you can use the Fast Forward Time button to speed up synchronization.
Execute the same command on R2.
R2:
R2# show clock detail
23:22:5.916 UTC Sat Oct 12 2019
Time source is NTPAre the clocks synchronized?
b. Check the NTP status and NTP associations by using the following commands to verify NTP operation and configuration.
R1# show ntp status Clock is synchronized, stratum 2, reference is 209.165.200.225 nominal freq is 250.0000 Hz, actual freq is 249.9990 Hz, precision is 2**24 reference time is E122ADE7.00000112 (23:19:3.274 UTC Sat Oct 12 2019) clock offset is 0.00 msec, root delay is 0.00 msec root dispersion is 10.63 msec, peer dispersion is 0.12 msec. loopfilter state is 'CTRL' (Normal Controlled Loop), drift is - 0.000001193 s/s system poll interval is 5, last update was 14 sec ago. R1# show ntp associations address ref clock st when poll reach delay offset disp *~209.165.200.225127.127.1.1 1 16 32 377 1.00 0.00 0.24 * sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
Device Configs - Final
ROUTER R1
! ============================================================== !--- 10.3.4 Packet Tracer - Configure and Verify NTP !--- ANSWER SCRIPT FOR ROUTER R1 !--- Usage: open the R1 CLI tab and paste this whole file at the R1> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless. ! ============================================================== enable configure terminal ! -------------------------------------------------------------- !--- Step 2: Configure the NTP Clients ! -------------------------------------------------------------- !--- b. Use N1 (209.165.200.225) as the NTP server. ntp server 209.165.200.225 end ! -------------------------------------------------------------- !--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) ! -------------------------------------------------------------- copy running-config startup-config ! ============================================================== !--- Verification (use Fast Forward Time in Packet Tracer to speed up synchronization): !--- show clock detail -> Time source is NTP !--- show ntp status -> Clock is synchronized, stratum 2, reference is 209.165.200.225 !--- show ntp associations -> *~209.165.200.225 (sys.peer, configured) ! ==============================================================
ROUTER R2
! ============================================================== !--- 10.3.4 Packet Tracer - Configure and Verify NTP !--- ANSWER SCRIPT FOR ROUTER R2 !--- Usage: open the R2 CLI tab and paste this whole file at the R2> prompt. Every line beginning with "!" is a comment; IOS ignores it, so pasting a comment by accident is harmless. ! ============================================================== enable configure terminal ! -------------------------------------------------------------- !--- Step 2: Configure the NTP Clients ! -------------------------------------------------------------- !--- c. Use N1 (209.165.200.225) as the NTP server. ntp server 209.165.200.225 end ! -------------------------------------------------------------- !--- Save the configuration to NVRAM. (Press Enter when prompted for the destination filename.) ! -------------------------------------------------------------- copy running-config startup-config ! ============================================================== !--- Verification (use Fast Forward Time in Packet Tracer to speed up synchronization): !--- show clock detail -> Time source is NTP !--- show ntp status -> Clock is synchronized, stratum 2, reference is 209.165.200.225 !--- show ntp associations -> *~209.165.200.225 (sys.peer, configured) ! ==============================================================





