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.

See Also<br />

Recipes 7.5 and 8.1<br />

10.2 Having RIP Advertise Its Routes<br />

Problem<br />

You want your RIP-enabled router to share routes with its neighbors and learn routes<br />

from them.<br />

Solution<br />

To have RIP advertise RIP routes to its neighbors, you need to configure a routing<br />

policy that accepts all RIP packets:<br />

[edit policy-options]<br />

aviva@RouterA# set policy-statement advertise-rip-routes term 1 from protocol direct<br />

aviva@RouterA# set policy-statement advertise-rip-routes term 1 from protocol rip<br />

aviva@RouterA# set policy-statement advertise-rip-routes term 1 then accept<br />

user@router1# show<br />

policy-options {<br />

policy-statement advertise-rip-routes {<br />

term 1 {<br />

from protocol [ direct rip ];<br />

then accept;<br />

}<br />

}<br />

}<br />

Then you apply the policy to all updates sent by RIP:<br />

[edit protocols rip]<br />

aviva@RouterA# set group alpha-rip-group export advertise-rip-routes<br />

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

When you simply enable RIP, the default JUNOS behavior is to only receive RIP traffic<br />

but not learn any of the routes or send any RIP routes. To have RIP send routing<br />

information to its neighbors, you need to configure a routing policy that has RIP<br />

export routes to its neighbors. An easy way to do this is to have RIP send both the<br />

direct and the RIP routes it knows about. Sending the RIP routes is obvious, but why<br />

do you need to send the direct routes? Direct routes, which are routes directly to a<br />

subnet, are automatically created when you configure the subnet on an interface<br />

address. Because RIP does not exchange routes by default, when you first configure<br />

RIP on your network, your routers might not have learned any RIP routes. You use<br />

the direct routes to catalyze the route-learning process. Once the RIP routers have<br />

exchanged direct routes, they can start to exchange their RIP routes.<br />

338 | 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!