To specify an authentication key for a time source, use the ntp authentication-key command in configuration command with a unique identifier and a key value.
To disable this capability, use the no form of this command.
ntp authentication-key <key id> md5 hash | plain <key value>
Use the ntp authentication-key command to set up a time source with an authentication key for NTP authentication and specify its pertinent key identifier, key encryption type, and key value settings. Add this key to the trusted list before you add this key to the ntp server command.
Time sources without the NTP authentication keys that are added to the trusted list will not be synchronized.
/admin(config)# ntp authentication-key
1 md5 plain SharedWithServe
/admin(config)# ntp authentication-key
2 md5 plain SharedWithServ
/admin(config)# ntp authentication-key
3 md5 plain SharedWithSer
Note The show running-config command will always show keys that are entered in Message Digest 5 (MD5) plain format converted into hash format for security. For example, ntp authentication-key 1 md5 hash ee18afc7608ac7ecdbeefc5351ad118bc9ce1ef3.
/admin(config)# no ntp authentication-key
3
(Removes authentication key 3.)
/admin(config)# no ntp authentication-key
(Removes all authentication keys.)
Allows synchronization of the software clock by the NTP server for the system. |
|
Specifies key numbers for trusted time sources that needs to be defined as NTP authentication keys. |
|