Operation Manual -- NTP 
Quidway S3900 Series Ethernet Switches-Release 1510  Chapter 1  NTP Configuration
 
Huawei Technologies Proprietary 
1-22 
An S3900 series switch operates in client mode with Quidway1 as the time server. 
Quidway1 operates in the server mode automatically. Meanwhile, NTP authentication 
is enabled on both sides. 
 
  Note: 
This example assumes that Quidway1 is a switch that supports the local clock being the 
master NTP clock. 
 
II. Network diagram 
Quidway 1
1.0.1.11/24
1.0.1.12/24
S3900
Quidway 1
1.0.1.11/24
1.0.1.12/24
Quidway 1
1.0.1.11/24
1.0.1.12/24
S3900
Quidway 1
1.0.1.11/24
1.0.1.12/24
 
Figure 1-10 Network diagram for  NTP server mode with authentication configuration 
III. Configuration procedures 
1)  Configure the S3900 series switch. 
# Enter system view. 
<S3900 > system-view 
[S3900] 
# Configure Quidway1 to be the time server. 
[S3900] ntp-service unicast-server 1.0.1.11 
# Enable NTP authentication. 
[S3900] ntp-service authentication enable 
# Set the MD5 key to 42, with the content being aNiceKey. 
[S3900] ntp-service authentication-keyid 42 authentication-mode md5 aNiceKey 
# Specify the key to be a trusted key. 
[S3900] ntp-service reliable authentication-keyid 42 
[S3900] ntp-service unicast-server 1.0.1.11 authentication-keyid 42 
The above configuration synchronizes S3900 to Quidway1. As NTP authentication is 
not enabled on Quidway1, S3900 will fail to be synchronized to Quidway1. 
To synchronize the S3900 series switch, the following configuration is needed for 
Quidway1. 
# Enable authentication on Quidway1. 
[Quidway1] system-view