21
4. Configure the key as a
trusted key.
ntp-
authentication-keyid
keyid
By default, no authentication key
is configured as a trusted key.
To configure NTP authentication for a broadcast server:
1. Enter system view.
N/A
2.
authentication.
ntp-service
authentication
enable
By default, NTP authentication is
disabled.
3.
authentication key.
• Release 1111:
ntp-service authentication-keyid
keyid authentication-mode md5
{ cipher | simple } value
• Release 1121 and later:
ntp-service authentication-keyid
keyid authentication-mode
{ hmac-sha-1 | hmac-sha-256 |
hmac-sha-384 | hmac-sha-512 |
md5 } { cipher | simple } string [ acl
ipv4-acl-number | ipv6 acl
ipv6-acl-number ] *
By default, no NTP authentication
key is configured.
4.
a trusted key.
ntp-
authentication-keyid
keyid
By default, no authentication key
is configured as a trusted key.
5. Enter interface view.
interface
interface-type
interface-number
N/A
6.
specified key with the
broadcast server.
ntp-service
broadcast-server
authentication-keyid
keyid
By default, the broadcast server is
not associated with any key.
NTP authentication results differ when different configurations are performed on broadcast client and
server. For more information, see Table 4. (N/A in the table means that whether the configuration is
performed does not make any difference.)
Table 4 NTP authentication results
Authentication
result
Enable NTP
authenticatio
n
Configur
and
configure
trusted
Associat
broadcas
t server
authenticatio
n
Configure
configure
trusted key
Yes Yes Yes Yes Yes Succeeded
Yes Yes Yes Yes No Failed
Yes Yes Yes No N/A Failed
Yes No Yes Yes N/A Failed
Yes No Yes No N/A No authentication
Yes N/A No Yes N/A Failed