Enabling EIGRP Authentication
Problem
You want to authenticate your EIGRP traffic to ensure that no unauthorized equipment can affect your routing tables.
Solution
To enable MD5-based EIGRP packet authentication, you must first define a key chain for the encryption, and then apply the authentication commands to the interface as follows:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#key chainRouter1(config-keychain)#ORAkeyRouter1(config-keychain-key)#1key-stringRouter1(config-keychain-key)#oreillyexitRouter1(config-keychain)#exitRouter1(config)#interfaceRouter1(config-if)#Serial0/1ip authentication mode eigrp55md5Router1(config-if)#ip authentication key-chain eigrpRouter1(config-if)#55 ORAexitRouter1(config)#endRouter1#
Discussion
As soon as we configure EIGRP authentication on this router, the neighbor relationship dropped because it failed to authenticate:
IP-EIGRP 55: Neighbor 172.25.2.2 (Serial0/0.2) is down: Auth failure
To bring this neighbor back up, you have to ensure that both routers use the same authentication keys.
It’s important to remember that this is just an authentication system. The routers do not encrypt the routing update packets as they send them through the network. They just authenticate these packets using MD5. This prevents people from either accidentally or maliciously injecting routes into your network. This is often useful in environments where you don’t control all of the routers.
You can ...
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