NTP Authentication
Problem
You want to authenticate your NTP packets.
Solution
Use the ntp authentication command to authenticate NTP traffic between associations. To configure an NTP enabled router to require authentication when other devices connect to it, use the following commands:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ntp authentication-key2md5Router1(config)#oreillyntp authenticateRouter1(config)#ntp trusted-keyRouter1(config)#2endRouter1#
Then you must configure the same authentication-key on the client router:
Router2#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router2(config)#ntp authentication-key2md5Router2(config)#oreillyntp authenticateRouter2(config)#ntp trusted-keyRouter2(config)#2ntp server172.25.1.5keyRouter2(config)#2endRouter2#
Discussion
People often confuse authentication with encryption. Authentication proves the authenticity of a packet’s source, whereas encryption encodes or enciphers the packet contents. For the purposes of NTP, proving the authenticity of the packet is critical, whereas encrypting the contents of the packet is unnecessary, since it only contains time information, which isn’t terribly sensitive in itself.
Cisco fully supports NTP authentication defined in RFC 1305. NTP authentication ensures that NTP associations synchronize time only to known and trusted NTP servers. This prevents servers from masquerading as legitimate timeservers ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access