ntp authentication

This command is used for authentication of NTP server by the NTP client.

Syntax

ntp authentication key-id <KEY-ID> [authentication-mode <MODE> key-value <KEY-STRING>] [trusted]

Parameters/Options

key-id <id>

Sets the key-id for the authentication key.

Subcommands

authentication-mode

Sets the NTP authentication mode

key-value <KEY-STRING>

Sets the key-value for the authentication key.

[trusted]

Sets the authentication key as trusted.

Example

switch(config)# ntp
Authentication      Configure NTP authentication.


switch(config)# ntp authentication
key-id              Set the key-id for this authentication key.


switch(config)# ntp authentication key-id 
<1-4294967295>      Set the authentication key-id.


switch(config)# ntp authentication key-id 1
authentication-mode  Set the NTP authentication mode.
trusted              Set this authentication key as trusted.


switch(config)# ntp authentication key-id 1 
authentication-mode|trusted md5
Authenticate using MD5.


switch(config)# ntp authentication key-id 1 
authentication-mode|trusted md5key-value  Set the NTP authentication key.


switch(config)# ntp authentication key-id 1
authentication-mode|trusted md5 key-value 
KEY           Enter a string to be set as the NTP authentication key.