Ntp configuration examples, Configuring ntp client/server mode, Network requirements – H3C Technologies H3C SR8800 User Manual

Page 81: Configuration procedure

Advertising
background image

69

Task Command

Remarks

3.

View the brief information of
the NTP servers from the local

router back to the primary
reference source.

display ntp-service trace [ | { begin
| exclude | include }
regular-expression ]

Available in any view

NTP configuration examples

NOTE:

Unless otherwise specified, the examples given in this section apply to all switches and routers that support
NTP.

Configuring NTP client/server mode

Network requirements

Perform the following configurations to synchronize the time between Device B and Device A:

As shown in

Figure 25

, the local clock of Device A is to be used as a reference source, with the

stratum level of 2.

Device B works in the client/server mode and Device A is to be used as the NTP server of Device
B.

Figure 25 Network diagram

Configuration procedure

1.

Set the IP address for each interface as shown in

Figure 25

. (Details not shown)

2.

Configure Device A:
# Specify the local clock as the reference source, with the stratum level of 2.

<DeviceA> system-view

[DeviceA] ntp-service refclock-master 2

3.

Configure Device B:
# View the NTP status of Device B before clock synchronization.

<DeviceB> 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

Advertising