1-16
The procedure of configuring NTP authentication on a server is the same as that on a client, and the
same authentication key must be configured on both the server and client sides.
Displaying and Maintaining NTP
To do…
Use the command…
Remarks
View the information of NTP
service status
display ntp-service status
Available in any view
View the information of NTP
sessions
display ntp-service sessions
[
verbose
]
Available in any view
View the brief information of the
NTP servers from the local
device back to the primary
reference source
display ntp-service trace
Available in any view
NTP Configuration Examples
Configuring NTP Client/Server Mode
Network requirements
Perform the following configurations to synchronize the time between Device B and Device A:
z
The local clock of Switch A is to be used as a master clock, with the stratum level of 2.
z
Switch B works in the client/server mode and Switch A is to be used as the NTP server of Switch B.
Figure 1-7
Network diagram for NTP client/server mode configuration
Configuration procedure
1) Configure IP addresses for interfaces (omitted)
2) Configuration on Device B:
# View the NTP status of Switch B before clock synchronization.
<SwitchB> display ntp-service status
Clock status: unsynchronized
Clock stratum: 16
Reference clock ID: none
Nominal frequency: 64.0000 Hz
Actual frequency: 64.0000 Hz
Clock precision: 2^7
Clock offset: 0.0000 ms