3Com Switch 4200G Configuration Guide
Configuration Example 307
NTP Server Mode with
Authentication
Configuration
Network requirements
The local clock of S4200G1 operates as the master NTP clock, with the clock stratum
set to 2.
A S4200G 2 series switch operates in client mode with S4200G 1 as the time server.
S4200G 1 operates in the server mode automatically. Meanwhile, NTP authentication
is enabled on both sides.
This example assumes that S4200G 1 is a switch that supports the local clock being
the master NTP clock.
Network diagram
Figure 98 Network diagram for NTP server mode with authentication configuration
Configuration procedures
1 Configure the S4200G 2 series switch.
a Enter system view.
<S4200G > system-view
System View: return to User View with Ctrl+Z.
[S4200G]
b Configure S4200G 1 to be the time server.
[S4200G] ntp-service unicast-server 1.0.1.11
c Enable NTP authentication.
[S4200G] ntp-service authentication enable
d Set the authentication key.
[S4200G] ntp-service authentication-keyid 42 authentication-mode md5
aNiceKey
e Specify the key to be a trusted key.
[S4200G] ntp-service reliable authentication-keyid 42
[[S4200G] ntp-service unicast-server 1.0.1.11 authentication-keyid 42
The above configuration synchronizes S4200G 2 to S4200G 1. As NTP authentication
is not enabled on S4200G 1, S4200G 2 will fail to be synchronized to S4200G 1.
To synchronize the S4200G 2 series switch, the following configuration is needed for
S4200G 1.
f Enable authentication on S4200G 1.
[S4200G] ntp-service authentication enable
g Set the authentication key.
[S4200G] ntp-service authentication-keyid 42 authentication-model md5
aNiceKey
h Specify the key to be a trusted key.
[S4200G] ntp-service reliable authentication-keyid 42