Configuring access control rights

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Configure the NTP service access control right for a peer device to access the local device.

  • Configure the NTP service access control right for a peer device to access the local devicentp-service access { peer | query | server | synchronization } acl ipv4-acl-number

  • Configure the IPv6 NTP service access control right for a peer device to access the local devicentp-service ipv6 { peer | query | server | synchronization } acl ipv6-acl-number

By default, the NTP service access control right for a peer device to access the local device is peer.

Before you configure the NTP service access control right to the local device, create and configure an ACL associated with the access control right. For more information about ACL, see ACL and QoS Configuration Guide.