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

}<br />

term 2 {<br />

from community nets2;<br />

then {<br />

destination-class off-net;<br />

accept;<br />

}<br />

}<br />

}<br />

community nets1 [7:8 9:10];<br />

community nets2 [1:2 4:5];<br />

}<br />

Apply a routing policy to the forwarding table with the corresponding destination class.<br />

[edit]<br />

routing-options {<br />

forwarding-table {<br />

export set-dest-class;<br />

}<br />

}<br />

Enable packet counting on an interface.<br />

[edit interfaces]<br />

interfaces so-1/0/1 {<br />

unit 0 {<br />

family inet6 {<br />

accounting {<br />

destination-class-usage;<br />

}<br />

}<br />

}<br />

}<br />

Example: Grouping Source Prefixes<br />

Configure a routing policy to group source prefixes, and allow prefixes that match the<br />

policy statement to have a source class created for them.<br />

[edit]<br />

policy-options {<br />

policy-statement set-gold-class {<br />

term {<br />

from<br />

route-filter 10.210.0.0/16 orlonger;<br />

route-filter 10.215.0.0/16 orlonger;<br />

then {<br />

source-class gold-class;<br />

}<br />

}<br />

}<br />

}<br />

Apply a routing policy to the forwarding table with the corresponding source class.<br />

[edit]<br />

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