The ntp-service authentication-keyid command sets NTP authentication key.
By default, no authentication key is set.
ntp-service authentication-keyid key-id authentication-mode { md5 | hmac-sha256 } plain plain-text
| Parameter | Description | Value |
|---|---|---|
| key-id | Specifies the key number. | It is an integer ranging from 1 to 4294967295. |
| authentication-mode md5 | Adopts Message-Digest Algorithm 5 (MD5) authentication mode. | - |
| authentication-mode hmac-sha256 | Adopts Secure Hash Algorithm 256 (SHA256) authentication mode. | - |
| plain plain-text | Indicates that the authentication key is in simple password format. | The keyword is a string of 1 to 255 case-sensitive characters without spaces. |
This command is available to aid upgrade compatibility. To run this command, you must enter the complete command.
This command is replaced by the ntp-service authentication-keyid key-id authentication-mode { md5 | hmac-sha256 } password-key command.