Datasheet
Lab – Configuring Syslog and NTP
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 14
Part 2: Configure NTP
In Part 2, you will configure R1 as the NTP server and R2 as the NTP client of R1. Synchronized time is
important for syslog and debug functions. If the time is not synchronized, it is difficult to determine what
network event caused the message.
Step 1: Display the current time.
Issue the show clock command to display the current time on R1.
R1# show clock
*12:30:06.147 UTC Tue May 14 2013
Record the information regarding the current time displayed in the following table.
Date
Answer will vary. In this example: May 14, 2013
Time
Answer will vary. In this example: 12:30:06.147
Time Zone
Answer will vary. In this example: UTC
Step 2: Set the time.
Use the clock set command to set the time on R1. The following is an example of setting the date and time.
R1# clock set 9:39:00 05 july 2013
R1#
*Jul 5 09:39:00.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 12:30:54
UTC Tue May 14 2013 to 09:39:00 UTC Fri Jul 5 2013, configured from console by
console.
Note: The time can also be set using the clock timezone command in the global configuration mode. For
more information regarding this command, research the clock timezone command at www.cisco.com to
determine the zone for your region.
Step 3: Configure the NTP master.
Configure R1 as the NTP master by using the ntp master stratum-number command in global configuration
mode. The stratum number indicates the number of NTP hops away from an authoritative time source. In this
lab, the number 5 is the stratum level of this NTP server.
R1(config)# ntp master 5
Step 4: Configure the NTP client.
a. Issue show clock command on R2. Record the current time displayed on R2 in the following table.
Date
Answer will vary.
Time
Answer will vary.
Time Zone
Answer will vary.
b. Configure R2 as the NTP client. Use the ntp server command to point to the IP address or hostname of
the NTP server. The ntp update-calendar command periodically updates the calendar with NTP time.
R2(config)# ntp server 10.1.1.1
R2(config)# ntp update-calendar