Command Manual – NTP
H3C S7500E Series Ethernet Switches
Chapter 1 NTP Configuration Commands
1-6
Parameters
peer
: Specifies to permit full access.
query
: Specifies to permit control query.
server
: Specifies to permit server access and query.
synchronization
: Specifies to permit server access only.
acl-number
: Basic ACL number, in the range of 2000 to 2999
Description
Use the
ntp-service access
command to configure the NTP service access-control
right to 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 local NTP service access-control right 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 perform
an access-control right match and will use the first matched right.
Note:
z
The ntp-service access command provides only a minimum degree of security
protection. A more secure method is identity authentication.
z
Before specifying an ACL number in the ntp-service access command, make sure
you have already created and configured this ACL.
Examples
# Configure devices on the 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
1.1.5 ntp-service authentication enable
Syntax
ntp-service authentication enable