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.

Chapter 4: Routing <strong>Policy</strong> <strong>Configuration</strong><br />

routing-options {<br />

forwarding-table {<br />

export set-gold-class;<br />

}<br />

}<br />

Enable packet counting on an interface. In this example, one interface accommodates<br />

both input and output.<br />

[edit interfaces]<br />

interfaces ge/0/0/0 {<br />

unit 0 {<br />

family inet {<br />

accounting {<br />

source-class-usage {<br />

input;<br />

output;<br />

}<br />

}<br />

}<br />

}<br />

}<br />

Example: Grouping Source and Destination Prefixes in a Forwarding Class<br />

Configure a routing policy to group source and destination prefixes in a forwarding class.<br />

[edit]<br />

policy-options {<br />

policy-statement set-bronze-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 />

forwarding-class bronze-class;<br />

}<br />

}<br />

}<br />

}<br />

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

[edit]<br />

routing-options {<br />

forwarding-table {<br />

export set-bronze-class;<br />

}<br />

}<br />

Enable counting of incoming source packets on an interface.<br />

[edit interfaces]<br />

interfaces fe/1/0/0 {<br />

unit 0 {<br />

family inet {<br />

accounting {<br />

Copyright © 2010, <strong>Juniper</strong> <strong>Networks</strong>, Inc.<br />

81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!