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

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

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

Junos 10.4 <strong>Policy</strong> <strong>Framework</strong> <strong>Configuration</strong> <strong>Guide</strong><br />

peer-as 2468;<br />

}<br />

}<br />

}<br />

}<br />

policy-options {<br />

policy-statement outbound-routes { # advertise local customer routes<br />

term statics {<br />

from protocol static;<br />

then accept;<br />

}<br />

term allowed-bgp-routes {<br />

from { # advertise routes<br />

as-path [ my-own-routes AS2468-routes ];<br />

}<br />

then accept;<br />

}<br />

term no-transit {<br />

then reject; # do not advertise any other routes<br />

}<br />

}<br />

policy-statement internal-routes { # advertise local customer routes<br />

term statics {<br />

from protocol static;<br />

then accept;<br />

}<br />

term default-route { # advertise just the default route<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 />

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

term as-22222-routes {<br />

from { # allow the 10.100.0.0/17 route to activate<br />

route-filter 10.100.0.0/17 exact; # the generated route in the routing # table<br />

}<br />

then accept;<br />

}<br />

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

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

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

}<br />

as-path my-own-routes "()";<br />

as-path AS2468-routes "2468";<br />

}<br />

94<br />

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

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

Saved successfully!

Ooh no, something went wrong!