Purpose
Command or Action
Example:
RP/0/RP0/CPU0:router(config-ntp)#
master 9
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 time keeping
if the machines do not agree on the time.
Note
Saves configuration changes.
Use one of the following commands:
Step 4
•
end
•
When you issue the
end
command, the system prompts you to commit
changes:
Uncommitted changes found, commit them before
•
commit
Example:
RP/0/RP0/CPU0:router(config-ntp)#
end
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.
or
RP/0/RP0/CPU0:router(config-ntp)#
commit
◦
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.
Configuring NTP-PTP Interworking
Use this task to configure NTP to use PTP as the time source.
Before You Begin
PTP must be supported and enabled on the router before NTP-PTP interworking can be configured. If PTP
is not enabled, you receive an error message similar to the following when you try to commit the configuration:
RP/0/RP0/CPU0:router(config)#
ntp master primary-reference-clock
RP/0/RP0/CPU0:router(config)#
commit
% Failed to commit one or more configuration items. Please issue
'show configuration failed' from this session to view the errors
RP/0/RP0/CPU0:router(config)#
show configuration failed
[:::]
ntp
master primary-reference-clock
!!% 'ip-ntp' detected the 'fatal' condition 'PTP is not supported on this platform'
!
end
System Management Configuration Guide for Cisco NCS 5000 Series Routers, IOS XR Release 6.2.x
159
Implementing NTP
Configuring NTP-PTP Interworking