Implementing NTP on Cisco IOS XR Software
Configuration Examples for Implementing NTP on Cisco IOS XR Software
Configuration Examples for Implementing NTP on Cisco IOS XR Software
This section contains the following examples:
•Configuring
•Configuring
•Configuring NTP Access Groups: Example, page
•Configuring NTP Authentication: Example, page
•Disabling NTP on an Interface: Example, page
•Configuring the Source IP Address for NTP Packets: Example, page
•Configuring the System as an Authoritative NTP Server: Example, page
•Updating the Hardware Clock: Example, page
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
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
!
Cisco IOS XR System Management Configuration Guide