1.
Specify the name of the policer:
[edit
firewall
]
user@switch#
set
policer
policer-one
The policer name can contain letters, numbers, and hyphens (-) and can be up to 64
characters long.
2.
Configure rate limiting for the policer:
a.
Specify the bandwidth limit in bits per second (bps) to control the traffic rate on
an interface:
[edit firewall policer policer-one]
user@switch#
set
if-exceeding
bandwidth-limit 300k
The range for the bandwidth limit is 1k through 102.3g bps.
b.
Specify the maximum allowed burst size to control the amount of traffic bursting:
[edit firewall policer policer-one]
user@switch#
set if-exceeding burst-size-limit 500k
To determine the value for the burst-size limit, multiply the bandwidth of the
interface on which the filter is applied by the amount of time to allow a burst of
traffic at that bandwidth to occur:
burst size = bandwidth * allowable time for burst traffic
The range for the burst-size limit is 1 through 2,147,450,880 bytes.
3.
Specify the policer action
discard
to discard packets that exceed the rate limits:
[edit firewall policer]
user@switch#
set policer-one
then
discard
Discard is the only supported policer action.
Specifying Policers in a Firewall Filter Configuration
To reference a policer for a single firewall, configure a filter term that includes the policer
action:
[edit firewall family ethernet-switching]
user@switch#
set
filter
limit-hosts
term
term-one from source-address 192.0.2.16/28
userswitch#
set filter limit-hosts term term-one then policer policer-one
Applying a Firewall Filter That Is Configured with a Policer
A firewall filter that is configured with one or more policer actions, like any other filter,
must be applied to a port, VLAN, or Layer 3 interface. For information about applying
firewall filters, see the sections on applying firewall filters in “Configuring Firewall Filters
(CLI Procedure)” on page 3063.
NOTE:
You can include policer actions on ingress firewall filters only.
Copyright © 2010, Juniper Networks, Inc.
3074
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...