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

authentication-key 2 md5 encrypted 06120A2D40031D10081240 authentication-key 3 md5 encrypted 1311121E074110232621 authenticate

trusted-key 3

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

!

authentication-key 2 md5 encrypted 06120A2D40031D10081240 authentication-key 3 md5 encrypted 1311121E074110232621 authenticate

trusted-key 3

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

!

authentication-key 2 md5 encrypted 06120A2D40031D10081240 authentication-key 3 md5 encrypted 1311121E074110232621 authenticate

trusted-key 3

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

SMC-190

Page 22
Image 22
Cisco Systems SMC-169 Disabling NTP on an Interface Example, Configuring the Source IP Address for NTP Packets Example