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

The configurable actions are to discard the packet, change the loss priority, or change<br />

the forwarding class.<br />

3. Configure the premium policer.<br />

[edit firewall policer policer1]<br />

user@host# set premium if-exceeding bandwidth-limit 200m burst-size-limit 50k<br />

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

For the premium policer, the only configurable action is to discard the packet.<br />

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

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

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

5. Verify that the policer is working as expected.<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 />

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

• show interfaces statistics command in the Junos Interfaces Command Reference<br />

• show policer command in the Junos Routing Protocols and Policies Command Reference<br />

Configuring Policers<br />

To configure policers, you include statements at the [edit firewall] hierarchy level of the<br />

configuration:<br />

[edit firewall]<br />

policer policer-name {<br />

filter-specific;<br />

if-exceeding {<br />

bandwidth-limit bps;<br />

bandwidth-percent number;<br />

burst-size-limit bytes;<br />

}<br />

logical-bandwidth-policer;<br />

logical-interface-policer;<br />

physical-interface-policer;<br />

then {<br />

policer-action;<br />

}<br />

}<br />

hierarchical-policer hierarchical-policer-name {<br />

aggregate {<br />

if-exceeding {<br />

bandwidth-limit bps;<br />

burst-size-limit bytes;<br />

}<br />

then {<br />

policer-action;<br />

}<br />

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

293

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

Saved successfully!

Ooh no, something went wrong!