Configuring the NTP Peer

To configure the software clock to synchronize a peer or to be synchronized by a peer, use the peer command. A maximum of eight NTP peers can be configured. To disable this capability, use the no form of the command.

device(config-ntp)# peer 1.2.3.4 key 1234
device(config-ntp)# peer 1:2::3:4 key 1234

The peer command is not effective if the NTP is enabled in client mode only.

Note: The peer command will fail if the peer is a member of a symmetric passive association.
Note: When the NTP server or peer is configured, the master command is not configured; upon configuring the clock set command, the system clock is not synchronized. When the master command is configured, and upon configuring the clock set command, the system clock is synchronized and the reference time will be the local clock.

To have active peers at both the ends, you must disable NTP, configure the peers, and enable NTP using the no disable command.