ntp trusted-key

Syntax

ntp trusted-key <KEY-ID>

no ntp trusted-key <KEY-ID>

Description

Sets a key as trusted. When NTP authentication is enabled, the switch only synchronizes with time servers that transmit packets containing a trusted key.

The no form of this command removes the trusted designation from a key.

Command context

config

Parameters

<KEY-ID>

Specifies the identification number of the key to set as trusted. Range: 1 to 65534.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Defining key 10 as a trusted key.

switch(config)# ntp trusted-key 10

Removing trusted designation from key 10:

switch(config)# no ntp trusted-key 10