Use this command to configure the authentication key, along with the algorithm MD5/SHA1/SHA256, for a trusted NTP time source. The NTP authentication key number must be unique across the system.
| Default | None |
| Format | ntp authentication-key <key-number> <msg-auth-algorithm> [encrypted <key-name>] |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| key-number | The number for identifying an authentication key. The range is 1 to 4,294,967,295. |
| msg-auth-algorithm | A selection of hashing algorithm for message authentication (MD5/SHA1/SHA256). The default is MD5. |
| key-name | The encrypted key-value. |
Example: The following is an example of the command.
(Routing) #configure (Routing) (Config) #ntp authentication-key 61 md5 Enter new password: ******** Confirm new password: ******** (Routing) (Config) #