131
Predefined user roles
network-admin
Usage guidelines
You needto enable SNTP authentication in networks that require time synchronization security to
make sure SNTP clients are synchronized only to authenticated NTP servers.
To authenticate an NTP server, set an authentication key and specify it as a trusted key.
Examples
# Enable SNTP authentication.
<Sysname> system-view
[Sysname] sntp authentication enable
Related commands
sntp authentication-keyid
sntp reliable authentication-keyid
sntp authentication-keyid
Use
sntp authentication-keyid
to set anSNTP authentication key.
Use
undo sntp authentication-keyid
to remove anSNTP authentication key.
Syntax
sntp authentication-keyidkeyidauthentication-mode md5
{
cipher
|
simple
}
string
undo sntp authentication-keyidkeyid
Default
No SNTP authentication key is set.
Views
System view
Predefined user roles
network-admin
Parameters
keyid
: Specifies a key ID to identify an authentication key, in the range of 1 to 4294967295.
authentication-modemd5value
: Uses the MD5 algorithm for key authentication.
cipher
: Specifies a key in encrypted form.
simple
: Specifies a key in plaintext form.For security purposes, the key specified in plaintext form
will be stored in encrypted form.
string
: Specifies thekey. Its plaintext form is a case-sensitive string of 1 to 32 characters. Its
encrypted form is a case-sensitive string of 1 to 73 characters.