O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required