Configuration Guide Configuring NTP
Verification
Run the show run command to verify the NTP configuration.
Related Commands
 Configuring the Access Control Rights for NTP Services
ntp access-group { peer | serve |serve-only | query-only }access-list-number | access-list-name
peer: allows time request and control query for local NTP services, and allows a local device to synchronize
time with a remote system (full access rights).
serve: allows time request and control query for local NTP services, but does not allow a local device to
synchronize time with a remote system.
serve-only: allows only time request for local NTP services.
query-only: allows only control query for local NTP services.
access-list-number: indicates the number of an IP ACL, ranging from 1 to 99 and from 1300 to 1999. For
details about how to create an IP ACL, refer to the Configuring ACL.
access-list-name: indicates the name of an IP ACL. For details about how to create an IP ACL, refer to the
Configuring ACL.
Global configuration mode
Configure NTP access control rights.
When an access request arrives, the NTP service matches rules in the sequence from the minimum access
restriction to the maximum access restriction and uses the first matched rule. The matching sequence is
peer, serve, serve-only, and query-only.
Configuration Example
 Configuring NTP Access Control Rights
Allow only the device with the IP address of 192.168.1.1 to send a time synchronization request to a local
device.
Ruijie(config)# access-list 1 permit 192.168.1.1
Ruijie(config)# ntp access-group serve-only 1
13.5 Monitoring
Displaying
Displays the current NTP information.
Debugging