120
After you configure an SNTP authentication key, use the sntp reliable authentication-keyid command to
set it as a trusted key. The key automatically changes to untrusted after you delete the key. In this case, you
do not need to execute the undo sntp-service reliable authentication-keyid command.
You can set a maximum of 128 keys by executing the command.
The authentication key, set in either plain text or cipher text, is saved to the configuration file in cipher
text.
Examples
# Set an MD5 authentication key, with the key ID of 10 and key value of BetterKey. Input the key in plain
text.
<Sysname> system-view
[Sysname] sntp authentication enable
[Sysname] sntp authentication-keyid 10 authentication-mode md5 simple BetterKey
Related commands
• sntp authentication enable
• sntp reliable authentication-keyid
sntp enable
Use sntp enable to enable the SNTP service.
Use undo sntp enable to disable the SNTP service.
Syntax
sntp enable
undo sntp enable
Default
The SNTP service is not enabled.
Views
System view
Predefined user roles
network-admin
Examples
# Enable the SNTP service.
<Sysname> system-view
[Sysname] sntp enable
sntp ipv6 unicast-server
Use sntp ipv6 unicast-server to specify an IPv6 NTP server for the device.
Use undo sntp ipv6 unicast-server to remove the IPv6 NTP server specified for the device.
Syntax
sntp ipv6 unicast-server { server-name | ipv6-address } [ vpn-instance vpn-instance-name ]
[ authentication-keyid keyid | source interface-type interface-number ] *