![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/a/3a/a3ac5849-72d9-442f-b748-0269767bdd25/a3ac5849-72d9-442f-b748-0269767bdd25-bg115.png)
NTP Client/Server Mode with Authentication Configuration 277
■ Device B is a Switch 5500, which takes Device A as the time server and works
in the client mode. Device A automatically works in the server mode.
■ Configure NTP authentication between Device A and Device B.
Applicable Products
Configuration Procedure
■ Configure Device B.
# Set Device A as the time server.
<DeviceB> system-view
[DeviceB] ntp-service unicast-server 1.0.1.11
# Enable the NTP authentication function.
[DeviceB] ntp-service authentication enable
# Set MD5 key numbered 42, with the key content aNiceKey.
[DeviceB] ntp-service authentication-keyid 42 authentication-mode md
5 aNiceKey
# Specify key 42 as a trusted key.
[DeviceB] ntp-service reliable authentication-keyid 42
[DeviceB] ntp-service unicast-server 1.0.1.11 authentication-keyid 42
■ Configure Device A.
# Enable the NTP authentication function.
<DeviceA> system-view
[DeviceA] ntp-service authentication enable
# Set MD5 key numbered 42, with the key content aNiceKey.
[DeviceA] ntp-service authentication-keyid 42 authentication-mode md
5 aNiceKey
# Specify key 42 as a trusted key.
[DeviceA] ntp-service reliable authentication-keyid 42
Complete Configuration ■ Configuration on Device B.
#
ntp-service authentication enable
ntp-service authentication-keyid 42 authentication-mode md5 X&9#$^U
(!:[Q=^Q‘MAF4<1!!
Product series Software version Hardware version
Switch 5500 Release V03.02.04 All versions
Switch 5500G Release V03.02.04 All versions
Switch 4500 Release V03.03.00 All versions
Switch 4210 Release V03.01.00 All versions