The ntp-service reliable authentication-keyid command specifies a reliable authentication key.
The undo ntp-service reliable authentication-keyid command deletes the reliable authentication key.
By default, no authentication key is specified to be reliable.
Usage Scenario
If identity authentication is enabled, specify one or more reliable keys. A client can only be synchronized with the servers that provide reliable keys.
Prerequisites
The NTP authentication key has been set using the ntp-service authentication-keyid command.
Precautions
If this command is the first NTP configuration command, the system automatically adds the ntp-service [ ipv6 ] server disable command in the configuration file to disable the NTP service. To enable the NTP service, run the undo ntp-service [ ipv6 ] server disable command. If this command is the last NTP configuration command to be deleted, the system automatically deletes the ntp-service [ ipv6 ] server disable command from the configuration file.
<HUAWEI> system-view [~HUAWEI] ntp-service authentication enable [*HUAWEI] ntp-service authentication-keyid 37 authentication-mode hmac-sha256 BetterKey [*HUAWEI] ntp-service reliable authentication-keyid 37