02-23-2024 03:45 AM
As both trust-key are using the MD5 encryption. what is major Between NTP trust key 1 and Trust key 12. have tried to use the trust key 12 instead of trust key 1. but I could not see that NTP SYN.
02-23-2024 04:35 AM
Ntp trust-key number
This is only number it not meaning anything.
You can choose key 12 but you need config
ntp authentication-key 12 md5 xxxx
02-23-2024 06:54 AM
Shall i use the Hash value or password for authentication.
02-23-2024 07:03 AM
After md5 use clear text password.
MHM
02-23-2024 05:00 AM
@DEBADURLAV SARANGI hi its the key number to refer in your NTP authentication settings. you can have many keys and refer relevant key in authentication command.
02-23-2024 07:19 AM
When you configure NTP you can have multiple keys configured on the device. For instance say you have three NTP servers that you want to authenticate with, however, each server has a different authentication key. In that case the key ID would be a key component because it will be referenced in the configuration for each of those server. Here is an example:
ntp authentication-key 1 md5 password-one
ntp authentication-key 2 md5 password-two
ntp authentication-key 3 md5 password-three
ntp server 1.1.1.1 key 1
ntp server 2.2.2.2 key 2
ntp server 3.3.3.3 key 3
However, if you have multiple keys configured on the device and all the NTP servers use the same key, in that case you can just configure the NTP trusted key without specifying the key ID for each server similar to this, let's say you want to use key ID 2 for all of them:
ntp trusted-key 2
ntp server 2.2.2.2
ntp server 3.3.3.3
Finally, the value you add after the "md5" keyword is text that will then be converted into an MD5 hash value, so you don't have to put the already converted hash value, the device will use the value you type as a seed attribute for MD5 hash. It is different than when you configure a password on the device and you select the encryption type, in that case you would need to insert the encrypted value rather than the clear text password.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide