124
ntp-service reliable authentication-keyid
Use
ntp-service reliable authentication-keyid
to specify an authentication key asatrusted key.
Use
undontp-service reliable authentication-keyid
to remove the configuration.
Syntax
ntp-service reliable authentication-keyidkeyid
undo ntp-service reliable authentication-keyidkeyid
Default
No trusted key is specified.
Views
System view
Predefined user roles
network-admin
Parameters
keyid
: Specifies an authentication key by its ID in the range of 1 to 4294967295.
Usage guidelines
When NTP authentication is enabled, a client can be synchronized only to a server that can provide
a trusted authentication key.
Before you use the command, make sure NTP authentication is enabled and an authentication key is
configured. The key automatically changes to untrusted after you delete the key. In this case, you do
not need to execute the
undo ntp-service reliable authentication-keyid
command.
You can set a maximum of128 keys by executing the command.
Examples
# Enable NTP authentication, specify the MD5 algorithm, with the key ID of 37 and key value of
BetterKey
.
<Sysname> system-view
[Sysname] ntp-service authentication enable
[Sysname] ntp-service authentication-keyid37authentication-mode md5 simple BetterKey
# Specify this key as a trusted key.
[Sysname] ntp-service reliable authentication-keyid37
Related commands
ntp-service authentication enable
ntp-service authentication-keyid