The packet action specifies the action taken on a packet that exceeds its rate limits. You configure packet actions within policer actions.
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 a packet action:
- policies group name list name rule name policer name packet-action name ...
- policies group name list name rule name policer name packet-action name forwarding-class {
- forwarding-class forwarding-class ;
- }
- policies group name list name rule name policer name packet-action name loss-priority {
- loss-priority loss-priority ;
- }
- policies group name list name rule name policer name packet-action name parameter {
- action action ;
- }
To configure a packet action:
- user@host# edit policies group junos list
firewallFilterPolicer rule pr policer pa packet-action pktAction
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa packet-action pktAction]
- user@host# set filter
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa packet-action pktAction]
- user@host# set forwarding-class forwarding-class
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa packet-action pktAction]
- user@host# set loss-priority loss-priority
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa packet-action pktAction]
- user@host# edit parameter
- [edit policies group junos list firewallFilterPolicer rule
pr policer pa packet-action pktAction parameter]
- user@host# set action paramAction
[edit policies group junos list firewallFilterPolicer rule pr policer pa packet-action pktAction parameter]
user@host# show
packet-action pktAction {
parameter {
action PolicyParameterAction;
}
}
bandwidth-limit 1048576;
bandwidth-limit-unit bps;
burst 15000;