![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/3/5d/35db0bb8-fbdc-48b1-9c6d-d45eaf210d57/35db0bb8-fbdc-48b1-9c6d-d45eaf210d57-bg14.png)
Implementing NTP on Cisco IOS XR Software
Configuration Examples for Implementing NTP on Cisco IOS XR Software
SMC-188
Cisco IOS XR System Management Configuration Guide
Configuration Examples for Implementing NTP on Cisco IOS XR
Software
This section contains the following examples:
• Configuring Poll-Based Associations: Example, page SMC-188
• Configuring Broadcast-Based Associations: Example, page SMC-188
• Configuring NTP Access Groups: Example, page SMC-188
• Configuring NTP Authentication: Example, page SMC-189
• Disabling NTP on an Interface: Example, page SMC-190
• Configuring the Source IP Address for NTP Packets: Example, page SMC-190
• Configuring the System as an Authoritative NTP Server: Example, page SMC-190
• Updating the Hardware Clock: Example, page SMC-191
Configuring Poll-Based Associations: Example
The following example shows an NTP configuration in which the router’s system clock is configured to
form a peer association with the time server host at IP address 192.168.22.33, and to allow the system
clock to be synchronized by time server hosts at IP address 10.0.2.1 and 172.19.69.1:
!
ntp
server 10.0.2.1 minpoll 5 maxpoll 7
peer 192.168.22.33
server 172.19.69.1
!
Configuring Broadcast-Based Associations: Example
The following example shows an NTP client configuration in which Gigabit Ethernet interface 0/2/0/0
is configured to receive NTP broadcast packets, and the estimated round-trip delay between an NTP
client and an NTP broadcast server is set to 2 microseconds:
ntp
interface GigabitEthernet0/2/0/0
broadcast client
!
broadcastdelay 2
The following example shows an NTP server configuration where Gigabit Ethernet interface 0/2/0/2 is
configured to be a broadcast server:
ntp
interface GigabitEthernet0/2/0/2
broadcast
!