Configuring Bandwidth Policers
The Junos OS supports policers that rate-limit traffic based on a percentage of physical port speed on an interface.
A bandwidth policer provides similar rate limiting at the logical interface level. For a bandwidth policer, the rate-limiting policer is based on a percentage of the configured logical interface bandwidth, defined as the shaping rate on that logical interface configured with class-of-service statements.
You can configure a policer to limit the bandwidth and apply that policer to multiple logical interfaces.
To configure a bandwidth policer, include the logical-bandwidth-policer statement at the [edit firewall policer policer-name] hierarchy level:
You can configure rate limiting on the logical interface policer. For information about rate limiting, see Rate Limiting. You can configure a policer action for the logical interface policer. For information about policy actions, see Policer Actions.
After configuring the bandwidth policer, you can apply the policer to an interface. To apply a bandwidth policer to a logical interface, include the policer policer-name statement at the [edit interfaces interface-name unit 0 family family-name] hierarchy level:
For more information about applying policers, see the Junos Class of Service Configuration Guide.
Example: Configuring a Bandwidth Policer
Configure a bandwidth policer to rate-limit traffic for a logical interface:
Apply the bandwidth policer to rate-limit IPv4 and IPv6 traffic on interface fe-0/1/1:
