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...
View the information of NTP
service status
View the information of NTP
sessions
View the brief information of the
NTP servers from the local
device back to the primary
reference source
NTP Configuration Examples
Configuring NTP Client/Server Mode
Network requirements
The local clock of Switch A is to be used as a master clock, with the stratum level of 2.
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
# 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
Root delay: 0.00 ms
Root dispersion: 0.00 ms
Peer dispersion: 0.00 ms
Use the command...
display ntp-service status
display ntp-service sessions
[ verbose ]
display ntp-service trace
1-15
Remarks
Available in any view
Available in any view
Available in any view