ntp trusted-key

To add a time source to the trusted list, use the ntp trusted-key command with a unique identifier. To disable this capability, use the no form of this command.

ntp trusted-key <key>

Syntax Description

ntp

The command to specify NTP configuration.

trusted-key

The identifier that you want to assign to this key.

key

Specifies key numbers for trusted time sources that needs to be defined as NTP authentication keys. Supports up to 65535 numeric characters.

Defaults

None

Command Modes

Configuration.

Usage Guidelines

Define this key as an NTP authentication key and then add this key to the trusted list before you add this key to an NTP server. Keys that are added to the trusted list can only be used that allows synchronization by the NTP server with the system.

Examples

/admin# configure

/admin(config)#

/admin(config)# ntp trusted-key 1

/admin(config)# ntp trusted-key 2

/admin(config)# ntp trusted-key 3

 

/admin(config)# no ntp trusted-key 2

(Removes key 2 from the trusted list.)

/admin(config)# no ntp trusted-key

(Removes all keys from the trusted list.)

Related Commands

Command

Description

ntp

The command to specify NTP configuration.

ntp authenticate

Enables authentication of all time sources.

ntp authentication-key

Configures authentication keys for trusted time sources.

ntp server

Allows synchronization of the software clock by the NTP server for the system.

show ntp

Displays the status information about the NTP associations.