Configuring NTP Authentication
To configure NTP authentication, perform this procedure:
Procedure
PurposeCommand or Action
Enables privileged EXEC mode.enable
Step 1
Example:
Enter your password if prompted.
Device> enable
Enters global configuration mode.configure terminal
Example:
Step 2
Device# configure terminal
Enables NTP authentication.[no] ntp authenticate
Step 3
Example:
Use the no form of this command to disable
NTP authentication
Device(config)# ntp authenticate
Defines the authentication keys.[no] ntp authentication-key number {md5 |
cmac-aes-128 | hmac-sha1 | hmac-sha2-256}
value
Step 4
• Each key has a key number, a type, and a
value.
Example:
• Keys can be one of the following types:
Device(config)# ntp authentication-key
• md5: Authentication using the MD5
algorithm.
42 md5 aNiceKey
• cmac-aes-128: Authentication using
Cipher-based message authentication
codes (CMAC) with the AES-128
algorithm. The digest length is 128
bits and the key length is 16 or 32
bytes.
• hmac-sha1: Authentication using
Hash-based Message Authentication
Code (HMAC) using the SHA1 hash
function. The digest length is 128 bits
and the key length is 1 to 32 bytes.
• hmac-sha2-256: Authentication using
HMAC using the SHA2 hash
function. The digest length is 256 bits
and the key length is 1 to 32 bytes
System Management Configuration Guide, Cisco IOS XE Amsterdam 17.2.x (Catalyst 9500 Switches)
15
Administering the Device
Configuring NTP Authentication