32 ntp refclock – CANOGA PERKINS 9175 Command Reference User Manual
Page 692
CanogaOS Command Reference
40-21
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.32 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]
no ntp refclock
stratum number
(Optional) Number from 1 to 15. Indicates the NTP stratum number that the
system will claim.
Command Mode
Global configuration
Default