11-10-2015 03:40 PM - last edited on 03-25-2019 03:45 PM by ciscomoderator
Some documents (e.g. "EIGRP Message Authentication configuration Example", http://www.cisco.com/c/en/us/support/docs/ip/enhanced-interior-gateway-routing-protocol-eigrp/82110-eigrp-authentication.html) seem to indicate time synchronization is generally needed for EIGRP MD5 Authentication to work.
Other documents (e.g the "Configuring EIGRP" chapter from the document "IP Routing EIGRP Configuration Guide Cisco IOS Release 12.2SY" http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_eigrp/configuration/12-2sy/eigrp-12-2sy-book/ire-cfg-eigrp.html) seem to indicate that it's needed primarily to manage key lifetimes.
Note that at least some releases on ASA's don't support key chains or key lifetimes. If that's the environment you're in, do you need need time synchronization for EIGRP adjacencies to work? Or to turn it around a little bit, to pose it as a technical detail question, rather than a larger design question, what would the impact be on MD5-authenticated EIGRP adjacencies if NTP time synchronization were to fail on one or both routers, assuming the use of infinite key lifetimes and/or devices that did not use key chains?
Wireshark traces don't show any evidence of timestamps being sent in MD5-authenticated EIGRP packets. And in GNS3 simulations, MD5-authenticated adjacencies appear to come up and stay up even when the time on the peers has been set to be years apart.
Many thanks.
Solved! Go to Solution.
11-11-2015 09:51 AM
Hi Masoud,
Specifically for EIGRP, these rules apply:
Feel welcome to ask further!
Best regards,
Peter
11-10-2015 08:53 PM
Hello,
Time synchronization is not needed if just one MD5 key used. If you use a keychain for MD5-authentication, you need to activate NTP for time synchronization. The reason is, routers must use a same key within the keychain for authentication at a specific time.
https://books.google.com/books?id=f5KssgEfd1IC&pg=PA146&lpg=PA146&dq=eigrp+time+synchronization&source=bl&ots=8NlVdLDKaz&sig=HQMYefXyWj7hNde0uF944ltghNo&hl=en&sa=X&ved=0CDkQ6AEwBGoVChMIt7XN_8aHyQIVAkwmCh2pigqN#v=onepage&q=eigrp%20time%20synchronization&f=false
Hope it helps,
Masoud
11-11-2015 02:53 AM
Many thanks for you help, Massoud.
11-11-2015 08:46 AM
Glad it helped.
11-11-2015 08:35 AM
James,
To add to Masoud's very good answer, it is indeed true that for common protocols such as EIGRP, the MD5 serves only to verify the integrity and authenticity of the message but it is not related to the sender's or receiver's local time. The particular time value is not fed into the MD5 computation.
The time comes into play if the particular key (even a single one) is configured in the key chain with accept-lifetime or send-lifetime commands that limit its usable duration for either purpose. Even then, however, the time is only used to determine whether the key is usable at all, but once it is deemed usable, the time is again irrelevant.
Best regards,
Peter
11-11-2015 08:59 AM
Thanks Peter for you point.
If accept-lifetime or send-lifetime are not configured, how a router determines which key in the keychain must be used? It is not based on the time? One router may use a key and other router may use another key in the chain causing failure in authentication. It is not true?
Thanks
11-11-2015 09:51 AM
Hi Masoud,
Specifically for EIGRP, these rules apply:
Feel welcome to ask further!
Best regards,
Peter
11-11-2015 09:58 AM
Thanks for your complete answer.
Masoud
11-12-2015 06:19 AM
Thanks all.
FWIW, I took at look at the EIGRP Internet Draft to see if I could find something definitive there. The Authentication TLV and MD5 (as well as SHA-2) authentication are described, but the description appears to be incorrect. It doesn't mention the Key ID, nor does it describe what data the MD5 hash is calculated over.
11-15-2015 03:02 PM
James,
The EIGRP draft is currently incomplete on the topic of authentication - it basically does not tell at all how the authentication is being done step-by-step. The next draft revision will include the details about authentication as well.
Best regards,
Peter
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