The objective of this lab exercise is for you to learn and understand how to configure the Cisco router to access the time from an NTP server.
NTP is an important tool used by Cisco equipment to ensure that devices share a consistent time. It is also used to add accurate timestamps to debug messages.
This lab is suitable for CCENT and CCNA certification exam preparation.
This lab has a difficulty rating of 5/10.
When you are ready for your certification exam, you should complete this lab in no more than 5 minutes.
IMPORTANT NOTE: In order to test NTP, you will need to be connected to an actual NTP server that you probably will not have with a home lab or remote rack.
Please use the following topology to complete this lab exercise:
Configure the hostname on router R1 as illustrated in the topology.
Set the clock manually to any time zone and time of your choice.
Configure R1 to access two NTP servers. Use any IP addresses you wish.
Verify your NTP configurations with the appropriate show commands.
Configuration and Verification
For reference information on configuring hostnames, please refer to earlier labs.
R1#clock set 15:10:30 15 June 2014 R1# *Jun 15 15:10:30.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:02:21 UTC Fri Mar 1 2002 to 15:10:30 UTC Sun Jun 15 2014, configured from console by console. R1#show clock 15:10:35.375 UTC Sun Jun 15 2014
Some of these commands won’t work with Packet Tracer.
R1(config)#ntp server 10.1.1.1 prefer R1(config)#ntp server 172.16.1.1 R1(config)# R1(config)#end
R1#show ntp associations address ref clock st when poll reach delay offset disp ~10.1.1.1 0.0.0.0 16 - 64 0 0.0 0.00 16000. ~172.16.1.1 0.0.0.0 16 - 64 0 0.0 0.00 16000. * master (synced), # master (unsynced), + selected, - candidate, ~ configured R1#show ntp status Clock is unsynchronized, stratum 16, no reference clock nominal freq is 250.0000 Hz, actual freq is 250.0000 Hz, precision is 2**18 reference time is 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1900) clock offset is 0.0000 msec, root delay is 0.00 msec root dispersion is 0.00 msec, peer dispersion is 0.00 msec R1#
You can add another router and configure it as an NTP server with the command below:
R1(config)#ntp master ? <1-15> Stratum number <cr>