Chapter 4
| System Management Commands
Time
ntp
authentication-key
This command configures authentication keys and key numbers to use when NTP
authentication is enabled. Use the no form of the command to clear a specific
authentication key or all keys from the current list.
Syntax
ntp authentication-key number md5 key
no ntp authentication-key [number]
number - The NTP authentication key ID number. (Range: 1-65535)
md5 - Specifies that authentication is provided by using the message
digest algorithm 5.
key - An MD5 authentication key string. The key string can be up to 32 case-
sensitive printable ASCII characters (no spaces).
Default Setting
None
Command Mode
Global Configuration
Command Usage
◆
The key number specifies a key value in the NTP authentication key list. Up to
255 keys can be configured on the switch. Re-enter this command for each
server you want to configure.
◆
Note that NTP authentication key numbers and values must match on both the
server and client.
◆
NTP authentication is optional. When enabled with the ntp authenticate
command, you must also configure at least one key number using this
command.
◆
Use the no form of this command without an argument to clear all
authentication keys in the list.
Example
Console(config)#ntp authentication-key 45 md5 thisiskey45
Console(config)#
Related Commands
ntp authenticate (135)
– 136 –