NOTE:
After you enable the NTP authentication feature for the client, make sure that you configure for the
client an authentication key that is the same as on the server and specify that the authentication key is
trusted. Otherwise, the client cannot be synchronized to the server.
Configuring NTP authentication for a server
To do...
1.
Enter system view.
2.
Enable NTP authentication.
3.
Configure an NTP
authentication key.
4.
Configure the key as a trusted
key.
5.
Enter interface view.
6.
Associate the specified key
with an NTP server.
NOTE:
The procedure of configuring NTP authentication on a server is the same as that on a client, and the
same authentication key must be configured on both the server and client sides.
Displaying and maintaining NTP
To do...
Display information about NTP
service status
Display information about NTP
sessions
Display the brief information
about the NTP servers from the
local device back to the primary
reference source
Use the command...
system-view
ntp-service authentication enable
ntp-service authentication-keyid
keyid authentication-mode md5
value
ntp-service reliable authentication-
keyid keyid
interface interface-type interface-
number
Broadcast server mode:
ntp-service broadcast-server
authentication-keyid keyid
Multicast server mode:
ntp-service multicast-server
authentication-keyid keyid
Use the command...
display ntp-service status [ |
{ begin | exclude | include }
regular-expression ]
display ntp-service sessions
[ verbose ] [ | { begin | exclude |
include } regular-expression ]
display ntp-service trace [ |
{ begin | exclude | include }
regular-expression ]
67
Remarks
—
Required.
Disabled by default.
Required.
No NTP authentication key by
default.
Required.
By default, no authentication key
is configured to be trusted.
—
Required.
You can associate a non-existing
key with an NTP server. To enable
NTP authentication, you must
configure the key and specify it as
a trusted key after associating the
key with the NTP server.
Remarks
Available in any view
Available in any view
Available in any view