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 value must match.
config>system>time>ntp
— authentication-key key-id {key key} [hash | hash2 | custom] 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 example 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#