33 ntp trustedkey – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 766

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 766 of 855

No server are configured.


Usage

Use this command if you want to allow the system to synchronize with the specified server. The server
will not synchronize to this machine.


Examples

The following example shows how to configure a switch to allow its software clock to be synchronized
with the clock by the device at IP address 172.16.22.44 using NTP version 2:
Switch(config)# ntp server 172.16.22.44 version 2


Related Commands

show ntp
ntp key

40.33 ntp trustedkey

To authenticate the identity of a system to which Network Time Protocol (NTP) will synchronize, use
the ntp trustedkey command in global configuration mode. To disable authentication of the identity of
the system, use the no form of this command.


Command Syntax

ntp trustedkey key-number
no ntp trustedkey
key-number

key-number

Key number of authentication key to be trusted.


Command Mode

Global configuration


Default

Disabled.


Usage

If authentication is enabled, use this command to define one or more key numbers (corresponding to
the keys defined with the ntp key command) that a peer NTP system must provide in its NTP packets,
in order for this system to synchronize to it. This function provides protection against accidentally
synchronizing the system to a system that is not trusted, because the other system must know the
correct authentication key.


Examples

The following example shows how to configure the system to synchronize only to systems providing
authentication key 42 in its NTP packets:

Advertising