•
Configure an authentication key.
•
Set the key as a trusted key on both client and server.
•
Associate the key with the NTP server on the client.
The key IDs and key values configured on the server and client must be the same. Otherwise, NTP
authentication fails.
To configure NTP authentication for a client:
Step
1.
Enter system view.
2.
Enable NTP authentication.
3.
Configure an NTP
authentication key.
4.
Configure the key as a
trusted key.
5.
Associate the specified key
with an NTP server.
To configure NTP authentication for a server:
Step
1.
Enter system view.
2.
Enable NTP authentication.
3.
Configure an NTP
authentication key.
4.
Configure the key as a
trusted key.
NTP authentication results differ when different configurations are performed on client and server.
For more information, see
performed does not make any difference.)
Command
system-view
ntp-service authentication
enable
ntp-service
authentication-keyid keyid
authentication-mode md5
{ cipher | simple } value
ntp-service reliable
authentication-keyid keyid
•
Associate the specified key
with an NTP server:
ntp-service unicast-server
{ server-name | ip-address }
authentication-keyid keyid
•
Associate the specified key
with an IPv6 NTP server:
ntp-service ipv6
unicast-server
{ server-name |
ipv6-address }
authentication-keyid keyid
Command
system-view
ntp-service authentication
enable
ntp-service
authentication-keyid keyid
authentication-mode md5
{ cipher | simple } value
ntp-service reliable
authentication-keyid keyid
Table
2. (N/A in the table means that whether the configuration is
16
Remarks
N/A
By default, NTP authentication is
disabled.
By default, no NTP authentication
key is configured.
By default, no authentication key
is configured as a trusted key.
N/A
Remarks
N/A
By default, NTP authentication is
disabled.
By default, no NTP authentication
key is configured.
By default, no authentication key
is configured as a trusted key.