Implementing NTP on Cisco IOS XR Software
Configuration Examples for Implementing NTP on Cisco IOS XR Software
Configuring NTP Access Groups: Example
The following example shows a NTP access group configuration where the following access group restrictions are applied:
•Peer restrictions are applied to IP addresses that pass the criteria of the access list named
•Serve restrictions are applied to IP addresses that pass the criteria of access list named
•
•
!
ntp
peer 10.1.1.1 peer 10.2.2.2 peer 10.3.3.3 peer 10.4.4.4 peer 10.5.5.5 peer 10.6.6.6 peer 10.7.7.7 peer 10.8.8.8
!
ipv4
10 permit ip host 10.1.1.1 any
20 permit ip host 10.8.8.8 any
!
ipv4
10 permit ip host 10.4.4.4 any
20 permit ip host 10.5.5.5 any
!
ipv4
!
ipv4
!
Configuring NTP Authentication: Example
The following example shows an NTP authentication configuration. In this example, the following is configured:
•NTP authentication is enabled.
•Two authentication keys are configured (key 2 and key 3).
•The router is configured to allow its software clock to be synchronized with the clock of the peer (or vice versa) at IP address 10.3.32.154 using authentication key 2.
•The router is configured to allow its software clock to be synchronized with the clock by the device at IP address 10.32.154.145 using authentication key 3.
Cisco IOS XR System Management Configuration Guide