960 CHAPTER 77: NTP CONFIGURATION
Displaying and 
Maintaining NTP
NTP Configuration 
Examples
Configuring NTP
Server/Client Mode
Network requirements
■ The local clock of Switch A is to be used as a reference source, with the stratum 
level of 2.
■ Switch B works in the server/client mode and Switch A is to be used as the NTP 
server of Switch B.
Network diagram
Figure 283   Network diagram for NTP server/client mode configuration
 
Configuration procedure
1 Configuration on Switch A:
# Specify the local clock as the reference source, with the stratum level of 2.
<SwitchA> system-view
[SwitchA] ntp-service refclock-master 2 
2 Configuration on Switch 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: 100.0000 Hz
Actual frequency: 100.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
Reference time: 00:00:00.000 UTC Jan 1 1900 (00000000.00000000) 
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 switch 
back to the primary reference 
source 
display ntp-service trace  Available in any view
1.0.1.11/24 1 .0.1.12/24
Switch A Switch B