The policer action specifies rate and burst size limits and the action taken if a packet exceeds those limits. You can create policer actions in JUNOS policer and JUNOS filter policy rules.
The type of action that you can create depends on the type of policy rule. See Policy Information Model.
Use the following configuration statements to configure policer actions:
- policies group name list name rule name policer name {
- bandwidth-limit bandwidth-limit ;
- bandwidth-limit-unit bandwidth-limit-unit ;
- burst burst ;
- description description ;
- }
To configure a policer action:
- user@host# edit policies group junos list
firewallFilterPolicer rule pr policer pa
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa]
- user@host# set bandwidth-limit bandwidth-limit
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa]
- user@host# set bandwidth-limit-unit bandwidth-limit-unit
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa]
- user@host# set burst burst
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa]
- user@host# set description description
[edit policies group junos list firewallFilterPolicer rule pr policer pa] user@host# show bandwidth-limit 1048576; bandwidth-limit-unit bps; burst 15000;