The ntp-service refclock-master command sets the local clock to be the NTP primary clock that provides the synchronizing time for other devices.
The undo ntp-service refclock-master command cancels the configuration of the NTP primary clock.
By default, no NTP primary clock is specified.
ntp-service refclock-master [ ip-address ] [ stratum ]
undo ntp-service refclock-master [ ip-address ] [ stratum ]
Parameter | Description | Value |
---|---|---|
ip-address | Specifies the IP address of the local reference clock. When no IP address is assigned, the local clock whose IP address is 127.127.1.0 is set as the default NTP primary clock. |
The value of ip-address is 127.127.1.u, and u ranges from 0 to 3, which represents the number of the selected local clock. |
stratum | Specifies the stratum of the NTP primary clock. If this parameter is not specified, the stratum is a default value. |
The value of the stratum is an integer that ranges from 1 to 15. The default value is 8. Timer is accurate if the stratum value is small. |
Usage Scenario
The local clock is the clock of the device itself. Run the ntp-service refclock-master command to set the local clock as the NTP primary clock that provides the synchronization time for other devices.
In NTP, the time synchronization in an NTP synchronization subnet is performed from a smaller level to a larger level, that is, from the 1st level to the 15th level. An authoritative clock is used as a reference time source for the synchronization subnet, and is located at the top of the synchronization subnet. The authoritative clock is stratum0. The current authoritative clock is mostly a Radio Clock or the Global Positioning System. The time of the authoritative clock is synchronized through the broadcast UTC time code other than NTP.
Precautions
If both manners are configured, the device selects an optimal clock source through selecting a preferred clock. That is, clocks determined in the two manners are compared to determine which clock is a lower stratum. The clock of a lower stratum is the preferred clock source.