31 ntp refclock – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 764

CanogaOS Command Line Reference
Revision 1.02
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 764 of 855
 
Command Syntax 
ntp peer { hostname | address } [key key-id] [prefer] [version number] 
no ntp peer { hostname | address } 
address
IP address of the time server or peer.
hostname
Name of the time server or peer.
key
(Optional)
Defines
the
authentication
key.
key-id
(Optional) Authentication key to use when sending packets to this peer (1 to 
64000). 
prefer
(Optional) Makes this peer the preferred peer that provides synchronization.
version
(Optional) Defines the Network Time Protocol (NTP) version number.
number
(Optional) NTP version number (1 to 3).
 
Command Mode 
Global configuration
 
Default 
No peers are configured.
 
Usage 
When a peer is configured, the default NTP version number is 3, no authentication key is used, and the 
source IP address is taken from the outgoing interface. 
Use this command to allow a device to synchronize with a peer, or vice versa. Using the prefer 
keyword reduces switching between peers. 
 
Examples 
The following example shows how to configure a switch to allow its software clock to be synchronized 
with the clock of the peer (or vice versa) at IP address 192.168.22.33 using NTP version 2. 
Switch(config)# ntp peer 192.168.22.33 version 2 
 
Related Commands 
show ntp 
ntp key 
40.31 ntp refclock
To configure an external clock source for use with Network Time Protocol (NTP) services, use the ntp 
refclock command in global configuration mode. To disable support of the external time source, use 
the no form of this command. 
 
Command Syntax 
ntp refclock [stratum number]
