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 11: Policer <strong>Configuration</strong><br />

[edit firewall]<br />

user@host# set family mpls filter limit-hosts term term1 then policer policer1<br />

4. Apply the policer to an interface.<br />

If you referenced the policer in a firewall filter, apply the filter to an interface. If an<br />

input filter is configured on the same logical interface as the policer, the policer is<br />

executed first.<br />

One possible configuration is to apply the policer to all traffic of a specific protocol<br />

family.<br />

[edit interfaces so-1/0/0 unit 0 family inet]<br />

user@host# set filter input policer1<br />

You can instead apply the policer to all traffic types, regardless of the protocol family.<br />

[edit interfaces so-1/0/0 unit 0]<br />

user@host# set policer input policer1<br />

To apply the policer to outgoing packets, include the output statement instead of the<br />

input statement.<br />

[edit interfaces so-1/0/0 unit 0]<br />

user@host# set policer output policer1<br />

On some platforms, you can apply a Layer 2 policer to all traffic types on Gigabit<br />

Ethernet (ge or xe) interfaces. Layer 2 policers must include the logical-interface-policer<br />

statement discussed in Step 2.<br />

[edit interfaces ge-1/0/0 unit 0]<br />

user@host# set layer2-policer input-policer policer1<br />

To apply a Layer 2 policer to outgoing packets, include the output-policer statement<br />

instead of the input-policer statement.<br />

5. For input policers on MX Series platforms only, configure a fixed classifier.<br />

A fixed classifier reclassifies all incoming packets, regardless of any preexisting<br />

classification.<br />

[edit class-of-service interfaces ge-0/0/0]<br />

user@host# set forwarding-class af<br />

The classifier name can be a configured classifier or one of the default classifiers.<br />

6. Verify that the policers are working as expected.<br />

user@host> show interfaces ge-0/0/0.0 detail<br />

user@host> show interfaces ge-0/0/0.0 statistics detail<br />

user@host> show interfaces so-0/0/0.0 detail<br />

user@host> show interfaces so-0/0/0.0 statistics detail<br />

user@host> show policer<br />

Related<br />

Documentation<br />

• Physical Interface Policers <strong>Configuration</strong> on page 306<br />

• show interfaces (Gigabit Ethernet) command in the Junos Interfaces Command<br />

Reference<br />

• show interfaces (SONET/SDH) command in the Junos Interfaces Command Reference<br />

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

285

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

Saved successfully!

Ooh no, something went wrong!