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

Defining Routing Policies<br />

• Example: Grouping Destination Prefixes on page 79<br />

• Example: Grouping Source Prefixes on page 80<br />

• Example: Grouping Source and Destination Prefixes in a Forwarding Class on page 81<br />

• Example: Accepting Routes with Specific Destination Prefixes on page 82<br />

• Example: Accepting Routes from BGP with a Specific Destination Prefix on page 82<br />

• Example: Using Routing <strong>Policy</strong> in an ISP Network on page 83<br />

To define a routing policy, include the policy-statement statement:<br />

policy-statement policy-name {<br />

term term-name {<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 />

then actions;<br />

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

policy-name specifies the policy name and must be unique in the configuration. It can<br />

contain letters, numbers, and hyphens (-) and can be up to 255 characters long. To<br />

include spaces in the name, enclose the entire name in quotation marks (“ ”).<br />

term-name specifies the name of a term in the policy and must be unique in that policy.<br />

It can contain letters, numbers, and hyphens (-) and can be up to 64 characters long. To<br />

include spaces in the name, enclose the entire name in quotation marks (“ ”).<br />

A policy statement can include multiple terms, including a unnamed term which must<br />

be the final term in the policy. To configure an unnamed term, omit the term statement<br />

when defining match conditions and actions. However, we recommend that you name<br />

all terms.<br />

For information about configuring the components of a term, see the following sections:<br />

• Configuring Match Conditions in Routing <strong>Policy</strong> Terms on page 41<br />

• Configuring Actions in Routing <strong>Policy</strong> Terms on page 47<br />

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