Ntp configuration examples, Ntp client/server mode configuration example, Network requirements – H3C Technologies H3C WX5500E Series Access Controllers User Manual
Page 32: Configuration procedure
24
Task Command
Remarks
Display the brief information
about the NTP servers from the
local device back to the
primary reference source.
display ntp-service trace [ | { begin |
exclude | include }
regular-expression ]
Available in any view.
NTP configuration examples
This section provides configuration examples for NTP.
NTP client/server mode configuration example
Network requirements
Perform the following configurations to synchronize the time between Device B and Device A:
•
As shown in
, the local clock of Device A is to be used as a reference source, with the
stratum level 2.
•
Device B operates in client/server mode and Device A is to be used as the NTP server of Device B.
Figure 11 Network diagram
Configuration procedure
1.
Set the IP address for each interface as shown in
. (Details not shown.)
2.
Configure Device B:
# Display the NTP status of Device B before clock synchronization.
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
Reference time: 00:00:00.000 UTC Jan 1 1900 (00000000.00000000)
# Specify Device A as the NTP server of Device B so that Device B synchronizes to Device A.
[DeviceB] ntp-service unicast-server 1.0.1.11
# Display the NTP status of Device B after clock synchronization.
[DeviceB] display ntp-service status