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

Configuring Bandwidth Policers<br />

}<br />

The Junos OS supports policers that rate-limit traffic based on a percentage of physical<br />

port speed on an interface.<br />

A bandwidth policer provides similar rate limiting at the logical interface level. For a<br />

bandwidth policer, the rate-limiting policer is based on a percentage of the configured<br />

logical interface bandwidth, defined as the shaping rate on that logical interface<br />

configured with class-of-service statements.<br />

You can configure a policer to limit the bandwidth and apply that policer to multiple<br />

logical interfaces.<br />

To configure a bandwidth policer, include the logical-bandwidth-policer statement at<br />

the [edit firewall policer policer-name] hierarchy level:<br />

logical-bandwidth-policer;<br />

You can configure rate limiting on the logical interface policer. For information about rate<br />

limiting, see “Rate Limiting” on page 280. You can configure a policer action for the logical<br />

interface policer. For information about policy actions, see “Policer Actions” on page 278.<br />

After configuring the bandwidth policer, you can apply the policer to an interface. To<br />

apply a bandwidth policer to a logical interface, include the policer policer-name statement<br />

at the [edit interfaces interface-name unit 0 family family-name] hierarchy level:<br />

policer (arp | input | output) policer-name;<br />

For more information about applying policers, see the Junos OS Class of Service<br />

<strong>Configuration</strong> <strong>Guide</strong>.<br />

Example: Configuring a Bandwidth Policer<br />

Configure a bandwidth policer to rate-limit traffic for a logical interface:<br />

[edit firewall policer new-police1]<br />

interfaces {<br />

ge-2/0/0 {<br />

unit 0 {<br />

family inet {<br />

policer {<br />

input new-police1;<br />

}<br />

address 192.168.1.1/24;<br />

}<br />

}<br />

}<br />

}<br />

firewall {<br />

policer new-police1 {<br />

logical-bandwidth-policer;<br />

if-exceeding {<br />

bandwidth-percent 10;<br />

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

309

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

Saved successfully!

Ooh no, something went wrong!