Use this command to configure the access control priority of the ntp
service. NTP services access control function provides a minimal
security measures (more secure way is to use the NTP authentication
mechanism).
When an access request arrives, NTP service matches the rules in
accordance with the sequence from the smallest to the largest to access
restriction, and the first matched rule shall prevail. The matching order
is peer, serve, serve-only, query-only.
Caution:
Control query function is not supported in the current system. Although
it matches with the order in accordance with the above rules, the related
requests about the control and query are not supported.
If you do not configure any access control rules, then all accesses are
allowed. However, once the access control rules are configured, only
the rule that allows access can be carried out.
The following example shows how to allow the peer device in acl1 to
control the query, request for and synchronize the time with the local
device; and limit the peer device in acl2 to request the time for the
local device:
Ruijie(config)# ntp access-group peer 1
Ruijie(config)# ntp access-group serve-only 2