An authentication key can be created for the purpose of authenticating an external Network Time Protocol (NTP) server.
device# configure terminal
device(config)# ntp authentication-key 33 md5 check
device(config)# ntp server 192.168.10.1 key 33
device(config)# exit
device(config)# exit
In the following example, an authentication key with an ID of 33 is created and the local time on the device is synchronized with an external NTP server at the IP address of 192.168.10.1.
device# configure terminal device(config)# ntp authentication-key 33 md5 check device(config)# ntp server 192.168.10.1 device(config)# server-192.168.10.1 key 33 device(config)# exit device(config)# exit device(config)# ntp authenticate