![H3C S5120-SI Series Operation Manual Download Page 540](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174540.webp)
1-22
Clock status: synchronized
Clock stratum: 3
Reference clock ID: 3.0.1.31
Nominal frequency: 100.0000 Hz
Actual frequency: 100.0000 Hz
Clock precision: 2^18
Clock offset: 0.0000 ms
Root delay: 40.00 ms
Root dispersion: 10.83 ms
Peer dispersion: 34.30 ms
Reference time: 16:02:49.713 UTC Sep 19 2005 (C6D95F6F.B6872B02)
As shown above, Switch A has been synchronized to Switch C, and the clock stratum level of Switch A
is 3, while that of Switch C is 2.
# View the NTP session information of Switch A, which shows that an association has been set up
between Switch A and Switch C.
[SwitchA-Vlan-interface3] display ntp-service sessions
source reference stra reach poll now offset delay disper
**************************************************************************
[1234] 3.0.1.31 127.127.1.0 2 255 64 26 -16.0 40.0 16.6
note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured
Total associations : 1
Configuring NTP Client/Server Mode with Authentication
Network requirements
z
The local clock of Device A is to be configured as a reference source, with the stratum level of 2.
z
Device B works in the client mode and Device A is to be used as the NTP server of Device B, with
Device B as the client.
z
NTP authentication is to be enabled on both Device A and Device B.
Figure 1-11
Network diagram for configuration of NTP client/server mode with authentication
Configuration procedure
1) Configuration on Device B:
<DeviceB> system-view
# Enable NTP authentication on Device B.
[DeviceB] ntp-service authentication enable
# Set an authentication key.
[DeviceB] ntp-service authentication-keyid 42 authentication-mode md5 aNiceKey
# Specify the key as a trusted key.
[DeviceB] ntp-service reliable authentication-keyid 42