server (NTP)

Configures the device in client mode and specifies the NTP servers to synchronize the system clock.
Syntax
server { ipv4-address | ipv6-address } [ maxpoll interval ] [ minpoll interval ] [ version version-number ] [ key key-id ] [ burst ]
no server { ipv4-address | ipv6-address } [ maxpoll interval ] [ minpoll interval ] [ version version-number ] [ key key-id ] [ burst ]
Parameters
ipv4-address
Specifies the IPv4 address of the server that provides the clock synchronization.
ipv6-address
Specifies the IPv6 address of the server that provides the clock synchronization.
version version-number
Specifies the Network Time Protocol (NTP) version number. Valid values are 3 and 4. The default value is 4.
key key-id
Specifies the authentication key range. The value can range from 1 to 65535.
minpoll interval
Specifies the shortest polling interval. The range is from 4 through 17. The default is 6. The interval argument is a power of 2 (4=16, 5=32, 6=64, 7=128, 8=256, 9=512, and so on).
maxpoll interval
Specifies the longest polling interval. The range is from 4 through 17. The default is 10. The interval argument is a power of 2 (4=16, 5=32, 6=64, 7=128, 8=256, 9=512, and so on).
burst
Sends a burst of packets to the server at each polling interval.
Modes

NTP configuration mode

Usage Guidelines

A maximum of eight NTP servers can be configured.

The no form of the command removes the NTP server configuration.

Examples

The following example configures the NTP server.

device(config)# ntp
device(config-ntp)# server 10.1.1.1 key 23 maxpoll 15 minpoll 8 version 3 burst