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.

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

How Prefix Lists Are Evaluated in Routing <strong>Policy</strong> Match Conditions<br />

During prefix list evaluation, the policy framework software performs a longest-match<br />

lookup, which means that the software searches for the prefix in the list with the longest<br />

length. The order in which you specify the prefixes, from top to bottom, does not matter.<br />

The software then compares a route’s source address to the longest prefix.<br />

You can use prefix list qualifiers for prefixes contained in a prefix list by configuring a<br />

prefix list filter. For more information, see Configuring Prefix Lists for Use in Routing <strong>Policy</strong><br />

Match Conditions.<br />

If a match occurs, the evaluation of the current term continues. If a match does not occur,<br />

the evaluation of the current term ends.<br />

NOTE: If you specify multiple prefixes in the prefix list, only one prefix must<br />

match for a match to occur. The prefix list matching is effectively a logical<br />

OR operation.<br />

Configuring Prefix List Filters<br />

A prefix list filter allows you to apply prefix list qualifiers to a list of prefixes within a prefix<br />

list. The prefixes within the list are evaluated using the specified qualifiers. You can<br />

configure multiple prefix list filters under the same policy term.<br />

To configure a prefix list filter, include the prefix-list-filter statement at the [edit<br />

policy-options policy-statement policy-name from] hierarchy level:<br />

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

from {<br />

prefix-list-filter prefix-list-name match-type actions;<br />

}<br />

The prefix-list-name option is the name of the prefix list to be used for evaluation. You<br />

can specify only one prefix list.<br />

The match-type option is the type of match to apply to the prefixes in the prefix list. It<br />

can be one of the match types listed in Table 20 on page 118.<br />

The actions option is the action to take if the prefix list matches. It can be one or more of<br />

the actions listed in “Configuring Flow Control Actions” on page 49 and “Configuring<br />

Actions That Manipulate Route Characteristics” on page 49.<br />

Table 20: Route List Match Types for a Prefix List Filter<br />

Match Type<br />

Match Condition<br />

exact<br />

The route shares the same most-significant bits (described by prefix-length), and prefix-length is equal<br />

to the route’s prefix length.<br />

longer<br />

The route shares the same most-significant bits (described by prefix-length), and prefix-length is greater<br />

than the route’s prefix length.<br />

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