ntp trusted-key

This command configures additional subset of trusted key-IDs which can be used for NTP and client authentication. The keys configured for server/peer is implicitly considered as part of trusted keys.

Syntax

ntp trusted-key [key-id-1 key-id-2key-id-n]
no ntp trusted-key

Command Default

By default the trusted key-IDs are not configured.

Parameters

key-id-1key-id-2key-id-n
List of authentication keys.

Modes

Global configuration mode

Usage Guidelines

A key must be configured as an authentication key before you can use it as a trusted key.

The no form of the command clears a configured key-ID from the trusted key list.

Examples

This command configures an additional subset of trusted key-IDs.

device(config)# ntp trusted-key 1 5 15
 device(config)# no ntp trusted-key 15