16.03.2014 Views

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

Policy Framework Configuration Guide - Juniper Networks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 4: Routing <strong>Policy</strong> <strong>Configuration</strong><br />

}<br />

}<br />

policy-statement if-upstream-routes-exist {<br />

term only-certain-contributing-routes {<br />

from { # allow either the 10.100.0.0/17 or the 10.101.0.0/27 route<br />

route-filter 10.100.0.0/17 exact; # route to activate the generated route<br />

route-filter 10.101.0.0/27 exact; # route to activate the generated route<br />

}<br />

then accept; # do not allow any other route to activate<br />

} # the generated route in the routing table<br />

term reject-all-other-routes {<br />

then reject;<br />

}<br />

}<br />

policy-statement customer-2--peer { # advertise customer routes to all peers<br />

term statics {<br />

from protocol static;<br />

then accept;<br />

}<br />

term-isp-and-customer routes { # advertise internal AS 1000 customer<br />

from { # to the customer<br />

protocol-bgp;<br />

route-filter 192.168.0.0/17 orlonger;<br />

}<br />

then accept;<br />

} # advertise just the default route to AS 2468<br />

term default-route {<br />

from {<br />

route-filter 0.0.0.0/exact;<br />

}<br />

then accept;<br />

}<br />

term reject-all-other-routes { # do not advertise any other routes<br />

then reject;<br />

}<br />

}<br />

policy-statement customer-1-peer {<br />

term default-route { # advertise just the default route to AS 1234<br />

from {<br />

route-filter 0.0.0.0/0 exact;<br />

}<br />

then accept;<br />

}<br />

term reject-all-other-routes { # do not advertise any other routes<br />

then reject;<br />

}<br />

}<br />

}<br />

Configuring Private and Exchange Peers on ISP Router 1 and 2<br />

ISP Router 1 and ISP Router 2 each have two policies configured: the private-peers policy<br />

and the exchange-peers policy. Because of their similar configurations, this example<br />

describes the configuration only for ISP Router 2.<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

89

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

Saved successfully!

Ooh no, something went wrong!