The authentication-key command configures an authentication key ID, key type, and key used to authenticate NTP PDUs sent to and received from other network elements participating in the NTP protocol. For authentication to work, the authentication key ID, authentication type, and authentication key values must match.
Use the following CLI syntax to configure an authentication key ID, key type, and key.
config>system>time>ntp
authentication-key key-id {key key} [hash | hash2] type {des|message-digest}
config>system>time>ntp#
config>system>time>ntp# authentication-key 1 key A type des
config>system>time>ntp# no shutdown
The following sample configuration shows NTP disabled with the authentication-key parameter enabled.
A:sim1>config>system>time>ntp# info
----------------------------------------------
shutdown
authentication-key 1 key "OAwgNUlbzgI" hash2 type des
----------------------------------------------
A:sim1>config>system>time>ntp#