Cisco Systems SMC-169 manual Disabling NTP on an Interface Example, SMC-190

Page 22

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

Image 22
Contents Implementing NTP on Cisco IOS XR Software NTP Functional Overview SMC-170Poll-Based Associations Configuring Poll-Based AssociationsSMC-171 Summary Steps SMC-172Broadcast-Based NTP Associations Configuring Broadcast-Based NTP AssociationsSMC-173 SMC-174 NTP Access Groups Configuring NTP Access GroupsSMC-175 SMC-176 SMC-177 NTP Authentication Configuring NTP AuthenticationSMC-178 Supported is md5 SMC-179Disabling NTP Services on a Specific Interface SMC-180SMC-181 Configuring the Source IP Address for NTP Packets SMC-182SMC-183 Configuring the System as an Authoritative NTP Server SMC-184Updating the Hardware Clock SMC-185SMC-186 Examples Verifying the Status of the External Reference ClockSMC-187 Configuring Broadcast-Based Associations Example Configuring Poll-Based Associations ExampleSMC-188 Configuring NTP Authentication Example Configuring NTP Access Groups ExampleSMC-189 Disabling NTP on an Interface Example Configuring the Source IP Address for NTP Packets ExampleSMC-190 Standards Updating the Hardware Clock ExampleRelated Documents MIBsTechnical Assistance RFCsSMC-192