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.

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

Configuring Match Conditions in Routing <strong>Policy</strong> Terms<br />

Each term in a routing policy can include two statements, from and to, to define the<br />

conditions that a route must match for the policy to apply:<br />

from {<br />

family family-name;<br />

match-conditions;<br />

policy subroutine-policy-name;<br />

prefix-list name;<br />

route-filter destination-prefix match-type ;<br />

source-address-filter source-prefix match-type ;<br />

}<br />

to {<br />

match-conditions;<br />

policy subroutine-policy-name;<br />

}<br />

You can include these statements at the following hierarchy levels:<br />

• [edit policy-options policy-statement policy-name term term-name]<br />

• [edit logical-systems logical-system-name policy-options policy-statement policy-name<br />

term term-name]<br />

In the from statement, you define the criteria that an incoming route must match. You<br />

can specify one or more match conditions. If you specify more than one, they all must<br />

match the route for a match to occur.<br />

The from statement is optional. If you omit the from and the to statements, all routes<br />

are considered to match.<br />

NOTE: In export policies, omitting the from statement from a routing policy<br />

term might lead to unexpected results. For more information, see “Applying<br />

Routing Policies and <strong>Policy</strong> Chains to Routing Protocols” on page 57.<br />

In the to statement, you define the criteria that an outgoing route must match. You can<br />

specify one or more match conditions. If you specify more than one, they all must match<br />

the route for a match to occur. You can specify most of the same match conditions in<br />

the to statement that you can in the from statement. In most cases, specifying a match<br />

condition in the to statement produces the same result as specifying the same match<br />

condition in the from statement.<br />

The to statement is optional. If you omit both the to and the from statements, all routes<br />

are considered to match.<br />

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

41

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

Saved successfully!

Ooh no, something went wrong!