Implementing NTP on Cisco IOS XR Software
How to Implement NTP on Cisco IOS XR Software
SMC-185
Cisco IOS XR System Management Configuration Guide
Updating the Hardware Clock
This task explains how to configure the hardware clock to be periodically updated from the software
clock running NTP.
On devices that have hardware clocks (system calendars), you can configure the hardware clock to be
periodically updated from the software clock. This is advisable for any device using NTP, because the
time and date on the software clock (set using NTP) is more accurate than the hardware clock, because
the time setting on the hardware clock has the potential to drift slightly over time.
Note No specific command enables NTP; the first NTP configuration command that you issue enables NTP.
Step 3
master
stratum
Example:
RP/0/RP0/CPU0:router(config-ntp)# master 9
Makes the router an authoritative NTP server.
Note Use the master command with caution. It is very
easy to override valid time sources using this
command, especially if a low stratum number is
configured. Configuring multiple machines in the
same network with the master command can cause
instability in timekeeping if the machines do not
agree on the time.
Step 4
end
or
commit
Example:
RP/0/RP0/CPU0:router(config)# end
or
RP/0/RP0/CPU0:router(config)# commit
Saves configuration changes.
• When you issue the end command, the system prompts
you to commit changes:
Uncommitted changes found, commit them before
exiting(yes/no/cancel)?
[cancel]:
–
Entering yes saves configuration changes to the
running configuration file, exits the configuration
session, and returns the router to EXEC mode.
–
Entering no exits the configuration session and
returns the router to EXEC mode without
committing the configuration changes.
–
Entering cancel leaves the router in the current
configuration session without exiting or
committing the configuration changes.
• Use the commit command to save the configuration
changes to the running configuration file and remain
within the configuration session.
Command or Action Purpose