[Contents] [Prev] [Next] [Index] [Report an Error]

# Configuring the Packet Action for the Policer Action (SRC CLI)

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:

1. From configuration mode, enter the packet action configuration. For example, in this procedure, pktAction is the name of the packet action.
   `
   user@host# edit policies group junos list firewallFilterPolicer rule pr policer pa packet-action pktAction
   `
2. (Optional) Configure the action to take on packets that exceed the bandwidth limit configured in the policer action.
   - Filter—Packets are discarded.
     `
     [edit policies group junos list firewallFilterPolicer rule pr policer pa packet-action pktAction]
     user@host# set filter
     `
   - Forwarding class—Packets are assigned to the forwarding class that you specify.
     `
     [edit policies group junos list firewallFilterPolicer rule pr policer pa packet-action pktAction]
     user@host# set forwarding-class forwarding-class
     `
   - Loss priority—Packets are assigned the loss priority that you specify.
     `
     [edit policies group junos list firewallFilterPolicer rule pr policer pa packet-action pktAction]
     user@host# set loss-priority loss-priority
     `
   - Parameter—The action specified by the parameter is applied. Before you assign a parameter, you must create a parameter of type packetOperation and commit the parameter configuration.
     `
     [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
     `
3. (Optional) Verify the policer action configuration.

       [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;

#### Related Topics

- Before You Configure SRC Policies
- Configuring Policer Actions (SRC CLI)

[Contents] [Prev] [Next] [Index] [Report an Error]