N Commands
ntp trusted-key
To configure one or more keys that a time source must provide in its Network Time Protocol (NTP)
packets in order for the device to synchronize to it, use the ntp trusted-key command. To remove the
NTP trusted key, use the no form of this command.
Syntax Description
number
Defaults
None
Command Modes
Global configuration mode (config)
Supported User Roles
network-admin
network-operator
vdc-admin
vdc-operator
Command History
Release
5.0(1)
Usage Guidelines
Make sure that you are in the correct virtual device context (VDC). To change the VDC, use the switchto
vdc command.
This command provides protection against accidentally synchronizing the device to a time source that is
not trusted.
This command does not require a license.
Examples
This example shows how to configure an NTP trusted key:
switch# config t
switch(config)# ntp trusted-key 42
switch(config)#
This example shows how to remove the NTP trusted key:
switch# config t
switch(config)# no ntp trusted-key 42
switch(config)#
OL-25806-03
ntp trusted-key number
no ntp trusted-key number
Trusted key number. The range is from 1 to 65535.
Modification
This command was introduced.
Cisco Nexus 7000 Series NX-OS System Management Command Reference
ntp trusted-key
315