Operation Manual – NTPH3C S5100-SI/EI Series Ethernet Switches Chapter 1 NTP Configuration1-251.8.5 Configuring NTP Server/Client Mode with AuthenticationI. Network requirementsz The local clock of Device A is set as the NTP master clock, with a clock stratumlevel of 2.z Device B is an S5100-SI/EI Ethernet switch and uses Device A as the NTP server.Device B is set to work in client mode, while Device A works in server modeautomatically.z The NTP authentication function is enabled on Device A and Device B.II. Network diagram1.0.1.11/24 1.0.1.12/24Device A Device BFigure 1-10 Network diagram for NTP server/client mode with authenticationconfigurationIII. Configuration procedure1) Configure Device B.# Enter system view. system-view# Set Device A as the NTP server.[DeviceB] ntp-service unicast-server 1.0.1.11# Enable the NTP authentication function.[DeviceB] ntp-service authentication enable# Configure an MD5 authentication key, with the key ID being 42 and the key beingaNiceKey.[DeviceB] ntp-service authentication-keyid 42 authentication-mode md5aNiceKey# Specify the key 42 as a trusted key.[DeviceB] ntp-service reliable authentication-keyid 42# Associate the trusted key with the NTP server (Device A).[DeviceB] ntp-service unicast-server 1.0.1.11 authentication-keyid 42After the above configurations, Device B is ready to synchronize with Device A.Because the NTP authentication function is not enabled on Device A, the clock ofDevice B will fail to be synchronized to that of Device A.2) To synchronize Device B, you need to perform the following configurations onDevice A.