R3166-R3206-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
106
Description
Use the ntp-service access command to configure the access-control right for the peer devices to access
the NTP services of the local device.
Use the undo ntp-service access command to remove the configured NTP service access-control right to
the local device.
By default, the access-control right for the peer devices to access the NTP services of the local device is
set to peer.
From the highest NTP service access-control right to the lowest one are peer, server, synchronization,
and query. When a device receives an NTP request, it will match against the access-control right in this
order and will use the first matched right.
Note that:
• The ntp-service access command provides only a minimum degree of security protection. A more
secure method is identity authentication. The related command is ntp-service authentication
enable.
• Before specifying an ACL number in the ntp-service access command, make sure you have already
created and configured this ACL.
Examples
# Configure the peer devices on subnet 10.10.0.0/16 to have the full access right to the local device.
<Sysname> system-view
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule permit source 10.10.0.0 0.0.255.255
[Sysname-acl-basic-2001] quit
[Sysname] ntp-service access peer 2001
ntp-service authentication enable
Syntax
ntp-service authentication enable
undo ntp-service authentication enable
View
System view
Default level
2: System level
Parameters
None
Description
Use the ntp-service authentication enable command to enable NTP authentication.
Use the undo ntp-service authentication enable command to disable NTP authentication.
By default, NTP authentication is disabled.
Related commands: ntp-service authentication-keyid, ntp-service reliable authentication-keyid.