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

The following sections discuss the following tasks for configuring AS path regular<br />

expressions and provides the following examples:<br />

• Configuring AS Path Regular Expressions on page 96<br />

• How AS Path Regular Expressions Are Evaluated on page 101<br />

• Examples: Configuring AS Path Regular Expressions on page 101<br />

Configuring AS Path Regular Expressions<br />

You can create a named AS path regular expression and then include it in a routing policy<br />

with the as-path match condition (described in “Configuring Match Conditions in Routing<br />

<strong>Policy</strong> Terms” on page 41). To create a named AS path regular expression, include the<br />

as-path statement:<br />

as-path name regular-expression;<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 />

To include the AS path regular expression in a routing policy, include the as-path match<br />

condition in the from statement:<br />

as-path name regular-expression;<br />

policy-statement policy-name {<br />

term term-name {<br />

from {<br />

names;<br />

}<br />

}<br />

}<br />

Additionally, you can create a named AS path group made up of AS path regular<br />

expressions and then include it in a routing policy with the as-path-group match condition.<br />

To create a named AS path group, include the as-path-group statement:<br />

as-path-group group-name {<br />

name [ regular-expressions ];<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 />

To include the AS path regular expressions within the AS path group in a routing policy,<br />

include the as-path-group match condition in the from statement:<br />

as-path-group group-name {<br />

name [ regular-expressions ];<br />

}<br />

policy-statement policy-name {<br />

term term-name {<br />

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