peer

Configures the software clock to synchronize a peer or to be synchronized by a peer.
Syntax
peer { ipv4-address | ipv6-address } [ key key-id ] [ maxpoll interval ] [ minpoll interval ] [ version version-number ] [ burst ]
no peer { ipv4-address | ipv6-address } [ key key-id ] [ maxpoll interval ] [ minpoll interval ] [ version version-number ] [ burst ]
Command Default

A peer is not configured.

Parameters
ipv4-address
Specifies the IPv4 address of the peer providing the clock synchronization.
ipv6-address
Specifies the IPv6 address of the peer providing the clock synchronization.
key key-id
Specifies the authentication key. The value can range from 1 through 65535. By default, no authentication key is configured.
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).
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).
version version-number
Specifies the Network Time Protocol (NTP) version number. Valid values are 3 and 4. The default value is 4.
burst
Sends a burst of packets to the server at each polling interval.
Modes

NTP configuration mode

Usage Guidelines

NTP peer mode is intended for configurations where a group of devices operate as mutual backups for each other. If one of the devices loses a reference source, the time values flow from the surviving peers to all the others.

A maximum of eight NTP peers can be configured.

Note: The peer command is not effective if NTP is enabled in client-only mode.
Note: If the peer is a member of a symmetric passive association, configuring the peer command will fail.

The no form of the command disables the software clock to synchronize a peer.

Examples

The following example configures the software clock.

device(config)# ntp
device(config-ntp)# peer 10.2.2.2 key 23 maxpoll 15 minpoll 7 version 4 burst