28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.4 Enabling RIP Authentication<br />

Problem<br />

You want to ensure that all RIP protocol traffic your router accepts comes from<br />

devices known to you so that only trusted routers participate in determining how<br />

traffic is routed through your network.<br />

Solution<br />

Configure MD5 authentication for RIP:<br />

aviva@RouterA> configure<br />

[edit protocols]<br />

aviva@RouterA# set rip authentication-type md5<br />

aviva@RouterA# set rip authentication-key 123456<br />

rip {<br />

authentication-type md5;<br />

authentication-key "$9$CuWOtBIhSrc8XcS24JGiH"; ## SECRET-DATA<br />

group alpha-rip-group {<br />

neighbor fe-0/0/0.0;<br />

}<br />

}<br />

<strong>Discussion</strong><br />

It is a good security measure to authenticate all RIP protocol exchanges to ensure<br />

that only trusted routers participate in your RIP network and in the exchange of traffic<br />

and protocol updates. RIP authentication was added to Version 2 of the protocol<br />

standard, so you cannot authenticate RIP Version 1 traffic.<br />

This example shows how to configure RIP to use MD5 authentication. You do this<br />

with two statements, one to set the authentication type and another to set the key, or<br />

password, that is included in all transmitted RIP packets. MD5 creates an encoded<br />

checksum that is included in the transmitted RIP packets. The receiving router verifies<br />

this checksum before accepting the packet.<br />

When you display the router’s configuration after you have typed the password, the<br />

password is displayed in encrypted form. This ensures that someone casually glancing<br />

through the configuration does not see the actual password.<br />

You can also configure a simple password for RIP authentication, which includes a<br />

plain-text password in the transmitted RIP packets. Plain-text passwords are easy to<br />

break by devices that sniff network traffic, so you should never use them when your<br />

goal is network security.<br />

For authentication to work across your entire RIP network, you need to configure<br />

MD5 authentication and the same password on all your routers in the same way as<br />

we show in this recipe. Once you have the encrypted version of the password, you<br />

342 | Chapter 10: RIP<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!