Name

ntp peer — global

Synopsis

ntp peer address [version value] [key keyid] [source interface] [prefer]
no ntp peer address

Configures

Network Time Protocol (NTP) service

Default

None

Description

This command defines the address of an NTP peer. The router synchronizes its time with the peer’s time and attempts to update the peer’s time. Notice how a peer is different from a server. If you specify an NTP server with the ntp server command, the router gets its time from the server but does not attempt to update the server’s time.

address

The IP address of the NTP peer.

version value

The NTP version (1 through 3). The default is 3.

key keyid

Authentication key to use for this peer. The ntp authentication-key command defines the keys and their key IDs.

source interface

The interface the router should use to communicate with this peer.

prefer

Makes this peer preferred over others.

Example

The following command sets an NTP peer at 10.11.1.2, which is available via the ethernet0 interface.

ntp peer 10.11.1.2 version 2 source ethernet0

Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.