ntp authentication-key

Creates an authentication key to associate with the NTP server, thereby enabling NTP authentication.

Syntax

ntp authentication-key key-id {md5 | sha1 }key-string
no ntp authentication-key key-id

Command Default

By default the authentication keys are not configured.

Parameters

key-id
Specifies an ID for an authentication key. The range is from 1 through 65534.
md5
The MD5 encryption.
sha1
The SHA1 encryption.
key-string
Specifies a key string. The string can be a maximum of 15 ASCII characters.

Modes

Global configuration mode

Usage Guidelines

This command adds an NTP authentication key to a list of authentication keys in the database. The key is shared by the client (device) and an external NTP server.

The maximum number of configurable NTP authentication keys is five. You cannot configure a duplicate key ID with a different key string. Use the no ntp authentication-key key-id command to remove the specified authentication key.

Authentication key must be created before associating the key with any server. Refer to the ntp server command for information on how to create this association.

Before downgrading the firmware to a version that does not support the encryption-level option, the encryption-level should be set to 0.

Examples

To create an authentication key with an ID of 33, an MD5 string called check, and an encryption level of 0 :

device# configure
device(config)# ntp authentication-key 33 md5 check encryption-level 0