109
Use undo ntp-service refclock-master to remove the configuration.
Syntax
ntp-service refclock-master [ ip-address ] [ stratum ]
undo ntp-service refclock-master [ ip-address ]
Default
The device does not use its local clock as the reference clock.
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: IP address of the local clock, 127.127.1.u, where u is the NTP process ID in the range of
0 to 3. The default value is 127.127.1.0.
stratum: Stratum level of the local clock, in the range of 1 to 15. The default value is 8. A lower
stratum level represents higher clock accuracy.
Usage guidelines
Typically an NTP server that gets its time from an authoritative time source, such as an atomic clock
has stratum 1 and operates as the primary time server to provide time synchronization for other
devices in the network. The accuracy of each server is the stratum, with the topmost level (primary
servers) assigned as one and each level downwards (secondary servers) in the hierarchy assigned
as one greater than the preceding level.
If the devices in a network cannot synchronize to an authoritative time source, you can perform the
following tasks:
Select a device that has a relatively accurate clock from the network.
Use the local clock of the device as the reference clock to synchronize other devices in the
network.
Use the command with caution to avoid time errors. As a best practice, adjust the local system time
to a correct value before you execute the command.
Examples
# Specify the local clock as the reference source, with the stratum level 2.
<Sysname> system-view
[Sysname] ntp-service refclock-master 2
ntp-service reliable authentication-keyid
Use ntp-service reliable authentication-keyid to specify an authentication key as a trusted key.
Use undo ntp-service reliable authentication-keyid to remove the configuration.
Syntax
ntp-service reliable authentication-keyid keyid
undo ntp-service reliable authentication-keyid keyid
Default
No trusted key is specified.