> NTP Configuration Mode Commands
> The Network Timing Protocol Configuration Mode is used to manage the 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.
> Usage
> Set 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 is to inherit the domain and IP routing options of the configured context.
> Example
> enable sampleContext
> end
> Exits the NTP configuration mode and returns to the Exec mode.
> Product
> All
> Privilege
> Security Administrator, Administrator
> Syntax
> end
> Usage
> Change the mode back to the Exec mode.
> exit
> Exits the NTP configuration mode and returns to the global configuration mode.
> Product
> All
> Privilege
> Security Administrator, Administrator
> Syntax
> exit
> Usage
> Return to the global 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 standard 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 first 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 a value in the range from 1 to 4.
> minpoll poll_period
> Default:6
> Specifies the minimum polling interval for NTP messages, in seconds, 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 for NTP messages, in seconds, 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 1.2.3.4 to the list of NTP servers.
> server 1.2.3.4
> The following marks the server with IP address 1.2.3.4 as the preferred NTP server.
> server 1.2.3.4 prefer

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