Make sure the local clock can provide the time accuracy required for the network. After you
•
configure the local clock as a reference source, the local clock is synchronized, and can operate as
a time server to synchronize other devices in the network. If the local clock is incorrect, timing errors
occur.
•
Before you configure this feature, adjust the local system time to make sure it is accurate.
If the factory-default system time of the device always restores at a reboot, do not configure the local
•
clock as a reference source or configure the device as a time server.
To configure the local clock as a reference source:
Step
1.
Enter system view.
2.
Configure the local clock as a
reference source.
Displaying and maintaining NTP
Execute display commands in any view.
Task
Display information about IPv6 NTP associations.
Display information about IPv4 NTP associations.
Display information about NTP service status.
Display brief information about the NTP servers from
the local device back to the primary reference source.
NTP client/server mode configuration example
Network requirements
As shown in
•
Configure the local clock of Device A as a reference source, with the stratum level 2.
Configure Device B to operate in client mode and Device A to be used as the NTP server for Device
•
B.
Figure 30 Network diagram
NTP server
1.0.1.11/24
Device A
Configuration procedure
1.
Assign an IP address to each interface, and make sure Device A and Device B can reach each
other, as shown in
Figure
30, perform the following tasks:
1.0.1.12/24
Figure
30. (Details not shown.)
Command
system-view
ntp-service refclock-master
[ ip-address ] [ stratum ]
Command
display ntp-service ipv6 sessions [ verbose ]
display ntp-service sessions [ verbose ]
display ntp-service status
display ntp-service trace
NTP client
Device B
87
Remarks
N/A
By default, the device does not use
the local clock as a reference
source.