> NTP Configuration Mode Commands
> The NTP Configuration Mode is used to manage the Network Timing Protocol (NTP) options for the entire system.
> enable
> Enables the use of the network timing protocol for updating the system clock.
> Product
> All
> Privilege
> Security Administrator, Administrator
> Syntax
> enable [ context ]
> context
> Default: local
> Specifies the context for which NTP is to be enabled. name must refer to a previously configured context expressed as an alphanumeric string of 1 through 79 characters.
> Usage
> Sets the NTP server to be used for the system. Only one NTP server may be active at any given time. If this command were issued in a different context followed by the current context, the prior context’s NTP server would be disabled and the current context’s NTP server would be used.
> If any NTP server is enabled, the chassis system clock will be synchronized to the active NTP server which covers all contexts for timing synchronization.
> The use of a given context for NTP server assignment allows the server to inherit the domain and IP routing options of that context.
> Example
> enable NTPcontext
> end
> Exits the current configuration mode and returns to the Exec mode.
> Product
> All
> Privilege
> Security Administrator, Administrator
> Syntax
> end
> Usage
> Use this command to return to the Exec mode.
> exit
> Exits the current mode and returns to the parent configuration mode.
> Product
> All
> Privilege
> Security Administrator, Administrator
> Syntax
> exit
> Usage
> Use this command to return to the parent configuration mode.
> server
> Configures an NTP server for use by the local NTP client in synchronizing the system clock.
> Product
> All
> Privilege
> Security Administrator, Administrator
> Syntax
> server ip_address [ prefer ] [ version number ] [ minpoll poll_period ] [ maxpoll poll_period ]
> no server ip_address
> no
> Indicates the server specified is to be removed from the list of NTP servers for clock synchronization.
> ip_address
> Specifies the IP address of the NTP server to allow for clock synchronization. ip_address must be specified using the IPv4 dotted-decimal notation.
> prefer
> Indicates the NTP server specified to be the preferred server. Only one server can be set to preferred. The preferred server is the first one contacted for clock synchronization.
> Important: Use of the prefer keyword is not recommended.
> version number
> Default: 4
> Specifies the network timing protocol version to use for server communications. number must be an integer from 1 to 4.
> minpoll poll_period
> Default:6
> Specifies the minimum polling interval (in seconds) for NTP messages as a power of 2. poll_period is the power or exponent. For example, if you specify the number 10, the value is 2^10 and the resultant poll period is 1024 seconds. poll_period must be an integer from 6 through 17.
> maxpoll poll_period
> Default: 10
> Specifies the maximum polling interval (in seconds) for NTP messages as a power of 2. poll_period is the power or exponent. For example, if you specify the number 10, the value is 2^10 and the resultant poll period is 1024 seconds. poll_period must be an integer from 6 through 17.
> Usage
> Configure the network timing protocol servers in the network as changes occur.
> Important: Adding, removing, or modifying an NTP server configuration entry causes the NTP client to restart and restart the synchronization process with all configured NTP servers.
> Example
> The following command adds the NTP server with address 10.2.3.4 to the list of NTP servers.
> server 10.2.3.4

Cisco Systems Inc.
Tel: 408-526-4000
Fax: 408-527-0883