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

Configuring Prefix Lists for Use in Routing <strong>Policy</strong> Match Conditions<br />

A prefix list is a named list of IP addresses. You can specify an exact match with incoming<br />

routes and apply a common action to all matching prefixes in the list.<br />

NOTE: Because the configuration of prefix lists includes setting up prefixes<br />

and prefix lengths, we strongly recommend that you have a thorough<br />

understanding of IP addressing, including supernetting, before proceeding<br />

with the configuration.<br />

A prefix list functions like a route list that contains multiple instances of the exact match<br />

type only. The differences between these two extended match conditions are summarized<br />

in Table 19 on page 116.<br />

Table 19: Prefix List and Route List Differences<br />

Feature<br />

Prefix List<br />

Route Lists<br />

Action<br />

Can specify action in a then<br />

statement only. These actions are<br />

applied to all prefixes that match<br />

the term.<br />

Can specify action that is applied to<br />

a particular prefix in a route-filter<br />

match condition in a from statement,<br />

or to all prefixes in the list using a<br />

then statement.<br />

For information about configuring route lists, see “Configuring Route Lists for Use in<br />

Routing <strong>Policy</strong> Match Conditions” on page 119.<br />

This section includes the following information:<br />

• Configuring Prefix Lists on page 116<br />

• How Prefix Lists Are Evaluated in Routing <strong>Policy</strong> Match Conditions on page 118<br />

• Configuring Prefix List Filters on page 118<br />

Configuring Prefix Lists<br />

You can create a named prefix list and include it in a routing policy with the prefix-list<br />

match condition (described in “Configuring Match Conditions in Routing <strong>Policy</strong> Terms”<br />

on page 41).<br />

To define a prefix list, include the prefix-list statement:<br />

prefix-list prefix-list-name {<br />

apply-path path;<br />

ip-addresses;<br />

}<br />

You can include this statement at the following hierarchy levels:<br />

• [edit policy-options]<br />

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

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