34 ntp trustedkey – CANOGA PERKINS 9175 Command Reference User Manual
Page 694
CanogaOS Command Reference
40-23
Related Commands
show ntp
ntp key
40.34 ntp trustedkey
To authenticate the identity of a system to which Network Time Protocol (NTP) will synchronize, use the
ntp trustedkey command in global configuration mode. To disable authentication of the identity of the
system, use the no form of this command.
Command Syntax
ntp trustedkey key-number
no ntp trustedkey key-number
key-number
Key number of authentication key to be trusted.
Command Mode
Global configuration
Default
Disabled.
Usage
If authentication is enabled, use this command to define one or more key numbers (corresponding to the
keys defined with the ntp key command) that a peer NTP system must provide in its NTP packets, in
order for this system to synchronize to it. This function provides protection against accidentally
synchronizing the system to a system that is not trusted, because the other system must know the
correct authentication key.
Examples
The following example shows how to configure the system to synchronize only to systems providing
authentication key 42 in its NTP packets:
Switch(config)# ntp authentication enable
Switch(config)# ntp key 42 aNiceKey
Switch(config)# ntp trustedkey 42
Related Commands
show ntp
ntp key