R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

68
NTP configuration examples
NTP client/server mode configuration example
Network requirements
Perform the following configurations to synchronize the time between Router B and Router A:
As shown in Figure 26, the loc
al clock of Router A is to be used as a reference source, with the
stratum level 2.
Router B operates in client/server mode and Router A is to be used as the NTP server of Router B.
Figure 26 Network diagram
Configuration procedure
1. Set the IP address for each interface as shown in Figure 26. (Details not shown.)
2. Configure Router A:
# Specify the local clock as the reference source, with the stratum level 2.
<RouterA> system-view
[RouterA] ntp-service refclock-master 2
3. Configure Router B:
# Display the NTP status of Router B before clock synchronization.
<RouterB> 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
Reference time: 00:00:00.000 UTC Jan 1 1900 (00000000.00000000)
# Specify Router A as the NTP server of Router B so that Router B synchronizes to Router A.
<RouterB> system-view
[RouterB] ntp-service unicast-server 1.0.1.11
# Display the NTP status of Router B after clock synchronization.
[RouterB] display ntp-service status
Clock status: synchronized
Clock stratum: 3
Reference clock ID: 1.0.1.11