122
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
mdc-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
] *
undo sntp ipv6 unicast-server
{
server-name
|
ipv6-address
} [
vpn-instance
vpn-instance-name
]
Default
No IPv6 NTP server is specified for the device.