2070
C
111: NTP C
HAPTER
n
Configuring NTP
Server/Client Mode with
Authentication
ONFIGURATION
Refer to
"IGMP Configuration" on page 1115
Network requirements
The local clock of Device A is to be configured as a reference source, with the
■
stratum level of 2.
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.
NTP authentication is to be enabled for Device A and Device B at the same
■
time.
Network diagram
Figure 620 Network diagram for configuration of NTP server/client mode with
authentication
1 .0.1.11/24
Device A
Configuration procedure
1 Configuration on Device A:
# Specify the local clock as the reference source, with the stratum level of 2.
<DeviceA> system-view
[DeviceA] ntp-service refclcok-master 2
2 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 md
5 aNiceKey
# Specify the key as key as a trusted key.
[DeviceB] ntp-service reliable authentication-keyid 42
# Specify Device A as the NTP server.
[DeviceB] ntp-service unicast-server 1.0.1.11 authentication-keyid 42
Before Device B can synchronize its clock to that of Device A, you need to enable
NTP authentication for Device A.
Perform the following configuration on Device A:
# Enable NTP authentication.
for how to configure IGMP.
1.0 .1.12/24
Device B