Configuring the key-identifier, authentication mode, and key-value (CLI)

This command configures the key-id, authentication-mode, and key-value, which are required for authentication. It is executed in the global configuration context.

Syntax:


sntp authentication key-id <key-id> authentication-mode <md5> key-value <key-string> [trusted]

no sntp authentication key-id <key-id>

Configures a key-id, authentication-mode (MD5 only), and key-value, which are required for authentication.

The no version of the command deletes the authentication key.

Default: No default keys are configured on the switch.

key-id

A numeric key identifier in the range of 1-4,294,967,295 (232) that identifies the unique key value. It is sent in the SNTP packet.

key-value <key-string>

The secret key that is used to generate the message digest. Up to 32 characters are allowed for key-string .

encrypted-key <<key-string>>

Set the SNTP authentication key value using a base64–encoded aes-256 encrypted string.

Setting parameters for SNTP authentication

switch(config)# sntp authentication key-id 55 authentication-mode md5
key-value secretkey1