123
ntp-service refclock-master
Use ntp-service refclock-masterto configure the local clock as the reference source.
Use undo ntp-service refclock-masterto 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 IDin 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 is8. A lower stratum
level represents higher clock accuracy.
Usage guidelines
Typicallyan NTP server that gets its time from an authoritative time source, such as an atomicclock
has stratum 1 and operates as the primary time server to provide time synchronization for other
devices in the network. Theaccuracy of each server is the stratum, withthe topmost level (primary
servers) assigned as one and each leveldownwards (secondary servers) in the hierarchy assigned
as one greaterthan 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