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

then {<br />

preference 200;<br />

accept;<br />

}<br />

term term2 {<br />

then reject;<br />

}<br />

}<br />

}<br />

Match alternate paths to an AS and accept them after modifying the preference:<br />

[edit]<br />

policy-options {<br />

wellington-alternate “1234{1,6} (56|47)? (78|101|112)* 9+”;<br />

policy-statement from-wellington {<br />

from as-path wellington-alternate;<br />

}<br />

then {<br />

preference 200;<br />

accept;<br />

}<br />

}<br />

}<br />

Match routes with an AS path of 123, 124, or 125 and accept them after modifying the<br />

preference:<br />

[edit]<br />

policy-options {<br />

addison "123–125";<br />

policy-statement from-addison {<br />

from as-path addison;<br />

}<br />

then {<br />

preference 200;<br />

accept;<br />

}<br />

}<br />

}<br />

Overview of BGP Communities and Extended Communities as Routing <strong>Policy</strong> Match<br />

Conditions<br />

A BGP community is a group of destinations that share a common property. Community<br />

information is included as a path attribute in BGP update messages. This information<br />

identifies community members and allows you to perform actions on a group without<br />

having to elaborate upon each member. You can create a named community and include<br />

it in a routing policy with the community match condition, which is described in “Configuring<br />

Match Conditions in Routing <strong>Policy</strong> Terms” on page 41. For a list of the actions that can<br />

be configured for communities, see “Configuring Actions That Manipulate Route<br />

Characteristics” on page 49.<br />

You can configure the standard community attribute and the extended communities<br />

attribute for inclusion in BGP update messages. The standard community attribute is<br />

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