
22
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
3: Manage 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
and
ntp-service reliable authentication-keyid
.
Examples
# Enable NTP authentication.
<Sysname> system-view
[Sysname] ntp-service authentication enable
ntp-service authentication-keyid
Syntax
ntp-service authentication-keyid
keyid
authentication-mode
md5
value
undo ntp-service authentication-keyid
keyid
View
System view