Displaying and maintaining ntp, Ntp configuration examples, Configuring ntp client/server mode – H3C Technologies H3C S5120 Series Switches User Manual

Page 565: Network requirements, Configuration procedure

Advertising
background image

1-16

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…

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
device back to the primary
reference source

display ntp-service trace

Available in any view

NTP Configuration Examples

Configuring NTP Client/Server Mode

Network requirements

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

z

The local clock of Device A is to be used as a reference source, with the stratum level of 2.

z

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

B.

Figure 1-7 Network diagram for NTP client/server mode configuration

Configuration procedure

1) Configure IP addresses for interfaces (omitted)

2) Configuration on 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: 100.0000 Hz

Actual frequency: 100.0000 Hz

Clock precision: 2^18

Advertising