ntp authentication-key

Syntax

ntp authentication-key <KEY-ID> md5 <PASSWORD> [trusted]

no ntp authentication-key <KEY-ID>

Description

Defines an MD5 authentication key that is used to secure the exchange with a time server. This command provides protection against accidentally synchronizing to a time source that is not trusted.

The no form of this command removes an authentication key.

Command context

config

Parameters

authentication-key <KEY-ID>

Specifies an identification number to uniquely identify the key. Range: 1 to 65534.

md5 <PASSWORD>

Specifies the password associated with this key. Range: 8 to 16 characters.

trusted

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

Authority

Administrators

Examples

Defining key 10 with the password myPassword as a trusted key:

switch(config)# ntp authentication-key 10 md5 myPassword trusted

Removing key 10:

switch(config)# no ntp authentication-key 10