1-13
NTP authentication requires that the authentication keys configured for the server and the client be the
same. Besides, the authentication keys must be trusted keys. Otherwise, the clock of the client cannot
be synchronized with that of the server.
Configuring NTP authentication on the server
Follow these steps to configure NTP authentication on the server:
To do… Use the command… Remarks
Enter system view
system-view
—
Enable NTP authentication
ntp-service authentication
enable
Required
Disabled by default.
Configure an NTP
authentication key
ntp-service
authentication-keyid key-id
authentication-mode md5
value
Required
By default, no NTP
authentication key is
configured.
Configure the specified key as a
trusted key
ntp-service reliable
authentication-keyid key-id
Required
By default, no trusted
authentication key is
configured.
Enter VLAN interface view
interface Vlan-interface vlan-id
—
Configure on the
NTP broadcast
server
ntp-service broadcast-server
authentication-keyid key-id
Associate
the specified
key with the
correspondi
ng
broadcast/m
ulticast client
Configure on the
NTP multicast
server
ntp-service multicast-server
authentication-keyid key-id
z In NTP broadcast server
mode and NTP multicast
server mode, you need to
associate the specified
key with the
corresponding
broadcast/multicast client
z You can associate an
NTP broadcast/multicast
client with an
authentication key while
configuring NTP mode.
You can also use this
command to associate
them after configuring the
NTP mode.