Implementing NTP on Cisco IOS XR Software
Configuration Examples for Implementing NTP on Cisco IOS XR Software
•The router is configured to synchronize only to systems providing authentication key 3 in their NTP packets.
!
ntp
server 10.3.32.154 key 3 peer 10.32.154.145 key 2
!
Disabling NTP on an Interface: Example
The following example shows an NTP configuration in which Gigabit Ethernet 0/2/0/0 interface is disabled:
!
ntp
interface GigabitEthernet0/2/0/0 disable
!
server 10.3.32.154 key 3 peer 10.32.154.145 key 2
!
Configuring the Source IP Address for NTP Packets: Example
The following example shows an NTP configuration in which Ethernet management interface 0/0/CPU0/0 is configured as the source address for NTP packets:
!
ntp
!
server 10.3.32.154 key 3 peer 10.32.154.145 key 2 source MgmtEth0/0/CPU0/0
!
Configuring the System as an Authoritative NTP Server: Example
The following example shows a NTP configuration in which the router is configured to use its own NTP master clock to synchronize with peers when an external NTP source becomes unavailable:
!
ntp master 6
!
Cisco IOS XR System Management Configuration Guide