Name
ntp peer — global
Synopsis
ntp peeraddress[versionvalue] [keykeyid] [sourceinterface] [prefer] no ntp peeraddress
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.
-
versionvalue The NTP version (1 through 3). The default is 3.
-
keykeyid Authentication key to use for this peer. The
ntpauthentication-keycommand defines the keys and their key IDs.-
sourceinterface 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access