Network requirements, Configuration procedure – H3C Technologies H3C WX5500E Series Access Controllers User Manual
Page 39
![background image](https://www.manualsdir.com/files/812984/content/doc039.png)
31
# Display NTP session information for Switch A, which shows that an association has been set up
between Switch A and the device.
[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
Configuration example for NTP client/server mode with
authentication
Network requirements
As shown in
, perform the following configurations to synchronize the time between Device B
and Device A and ensure network security.
•
The local clock of Device A is to be configured as a reference source, with the stratum level 2.
•
Device B operates in 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 on both Device A and Device B.
Figure 15 Network diagram
Configuration procedure
1.
Set the IP address for each interface as shown in
. (Details not shown.)
2.
Configure Device B:
# 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
# Specify Device A as the NTP server of Device B.
[DeviceB] ntp-service unicast-server 1.0.1.11 authentication-keyid 42
Before Device B can synchronize its clock to that of Device A, enable NTP authentication for
Device A.
Perform the following configuration on Device A:
# Enable NTP authentication.
[DeviceA] ntp-service authentication enable
# Set an authentication key.
[DeviceA] ntp-service authentication-keyid 42 authentication-mode md5 aNiceKey