Configuring Types of Actions for Rate-Limit Actions (SRC CLI)
When you configure a rate-limit action or a rate-limit hierarchy, you specify types of actions for conformed traffic, committed traffic, and exceed traffic.
Before you configure the various types of action, configure the rate limit or parent group (for rate-limit hierarchies) that is to include the actions. See
Use the following configuration statements to configure rate-limit actions from the following hierarchy levels:
- [edit policies group name list name rule name]
- [edit policies group name list name parent-group name]
To specify types of actions for rate-limit actions:
- Specify an action for a rate-limit action or a rate-limit
hierarchy:
Note: The following examples show the configuration for a committed action. You can configure the same actions for committed actions, conformed actions, and exceed actions.
- Filter (drop packet).[edit policies group junose list rate-limiter rule pr rate-limit]user@host# set committed-action filter
- Forward.[edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]user@host# set committed-action forward
- (For rate-limit hierarchies only) Forward conditionally.[edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]user@host# set committed-action forward-conditional
- (Rate-limit hierarchies only for committed and conformed
actions) Forward unconditionally.[edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]user@host# set committed-action forward-unconditional
- (For rate-limit hierarchies only) Forward and exit from
the rate-limit hierarchy.[edit policies group parentGroupDefault list twoRate parent-group PGShared rate-limit]user@host# set committed-action forward-final
- Mark. If you select mark, enter the mark values. [edit policies group junose list rate-limiter rule pr rate-limit]user@host# edit committed-action mark mark-info [edit policies group junose list rate-limiter rule pr rate-limit committed-action mark mark-info]user@host# set value value [edit policies group junose list rate-limiter rule pr rate-limit committed-action mark mark-info]user@host# set mask mask
Make sure that masks configured with a rate limit action are the same for different mark actions.
- Parameter. Before you assign a parameter, you must create
a parameter of type packetOperation and commit the parameter configuration. [edit policies group junose list rate-limiter rule pr rate-limit committed-action]user@host# set committed-action parameter action action
- Filter (drop packet).