The ntp-service authentication-keyid command sets NTP authentication key.
The undo ntp-service authentication-keyid command removes NTP authentication key.
By default, no authentication key is set.
ntp-service authentication-keyid key-id authentication-mode { md5 | hmac-sha256 } plain password-plain
undo ntp-service authentication-keyid key-id
Parameter | Description | Value |
---|---|---|
key-id | Indicates the key number. | Key ID is an integer and ranges from 1 to 4294967295. |
authentication-mode md5 | Indicates MD5 authentication mode. | - |
authentication-mode hmac-sha256 | Indicates HMAC-SHA256 authentication mode. | - |
plain password-plain | Indicates that the configured password is displayed in plain text, and specifies the password. NOTICE:
If plain is selected, the password is saved in the configuration file in plain text. This brings security risks. |
The password is a string of 1 to 255 case-sensitive characters without spaces. |