ntp access-group
To control access to Network Time Protocol (NTP) services on the system, use the ntp access-group command in global configuration mode. To remove access control to the NTP services, use the no form of this command.
ntp access-group { peer | access-list-number }
no ntp access-group { peer | access-list-number }
Syntax Description
peer |
Allows time requests and NTP control queries and permits the system to synchronize with the remote system. |
access-list-number |
Number (from 1 to 9199) of a standard IPv4 access list. |
Command Default
By default, there is no access control. Full access is granted to all systems.
Command Modes
Global configuration (config)
Command History
Release |
Modification |
---|---|
Cisco IOS XE Release 17.2.1v |
Command qualified for use in Cisco vManage CLI templates. |
Usage Guidelines
For usage guidelines, see the Cisco IOS XE, ntp access-group command.
The following example shows how to configure a system to allow itself to be synchronized by a peer:
Router(config)# ntp access-group peer 25
The following example shows how to remove all the configured NTP options and disable the NTP server:
Router(config)# no ntp