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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

policy-options {<br />

community dunedin members [ 56:2379 23:46944 ];<br />

policy-statement from-dunedin {<br />

from community dunedin;<br />

then {<br />

metric 2;<br />

preference 100;<br />

next policy;<br />

}<br />

}<br />

}<br />

The preceding example modifies the metric and preference for routes that contain<br />

members of community dunedin only.<br />

NOTE: You cannot set or add a community in a policy whose members use<br />

regular expressions or a wildcard.<br />

Delete a particular community from a route, leaving remaining communities untouched:<br />

[edit]<br />

policy-options {<br />

community dunedin members 701:555;<br />

policy-statement delete-dunedin {<br />

then {<br />

community delete dunedin;<br />

}<br />

}<br />

}<br />

Remove any community from a route with the AS number of 65534 or 65535:<br />

[edit]<br />

policy-options {<br />

community my-as1-transit members [ 65535:10 65535:11 ];<br />

community my-as2-transit members [ 65534:10 65534:11 ];<br />

community my-wild members [ 65534:* 65535:* ];<br />

policy-statement delete-communities {<br />

from {<br />

community [ my-as1-transit my-as2-transit ];<br />

}<br />

then {<br />

community delete my-wild;<br />

}<br />

}<br />

}<br />

Match the set of community members 5000, 5010, 5020, 5030, and so on up to 5090:<br />

[edit]<br />

policy-options {<br />

community customers members "^1111:50.0$";<br />

policy-statement advertise-customers {<br />

from community customers;<br />

then accept;<br />

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