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 />

To modify the preceding routing policy so that an IGP does not export unwanted routes,<br />

you can specify the following additional terms:<br />

[edit]<br />

routing-options {<br />

autonomous-system 56;<br />

}<br />

protocols {<br />

isis {<br />

export statics-policy;<br />

}<br />

}<br />

policy-options {<br />

policy-statement statics-policy {<br />

term term1 {<br />

from {<br />

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

route-filter 172.16.1.1/3 orlonger;<br />

}<br />

then reject; # reject the prefixes in the route list<br />

}<br />

term term2 { # reject direct routes<br />

from protocol direct;<br />

then reject;<br />

}<br />

term term3 { # reject static routes<br />

from protocol static;<br />

then reject;<br />

}<br />

term term4 { # reject local routes<br />

from protocol local;<br />

then reject;<br />

}<br />

term term5 { # reject aggregate routes<br />

from protocol aggregate;<br />

then reject;<br />

}<br />

term term6 {<br />

then accept; # accept all other routes<br />

}<br />

}<br />

}<br />

Applying <strong>Policy</strong> Expressions to Routes Exported from Routing Tables<br />

<strong>Policy</strong> expressions give the policy framework software a different way to evaluate routing<br />

policies. A policy expression uses Boolean logical operators with policies. The logical<br />

operators establish rules by which the policies are evaluated.<br />

During evaluation of a routing policy in a policy expression, the policy action of accept,<br />

reject, or next policy is converted to the value of TRUE or FALSE. This value is then<br />

evaluated against the specified logical operator to produce output of either TRUE or<br />

FALSE. The output is then converted back to a flow control action of accept, reject, or<br />

next policy. The result of the policy expression is applied as it would be applied to a single<br />

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

59

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

Saved successfully!

Ooh no, something went wrong!