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

# 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

- Configuring Rate-Limit Actions (SRC CLI)
- Configuring Hierarchical Rate-Limit Actions (SRC CLI)

Use the following configuration statements to configure rate-limit actions:

`

policies group name list name rule name rate-limit name committed-action mark mark-info {
  value value ;
  mask mask ;
}
policies group name list name rule name rate-limit name committed-action parameter {
  action action ;
}
policies group name list name rule name rate-limit name conformed-action mark mark-info {
  value value ;
  mask mask ;
}
policies group name list name rule name rate-limit name conformed-action parameter {
  action action ;
}
policies group name list name rule name rate-limit name exceed-action mark mark-info {
  value value ;
  mask mask ;
}
policies group name list name rule name rate-limit name exceed-action parameter {
  action action ;
}

`

Use the following configuration statements to configure rate-limit actions for rate-limit hierarchies:

`

policies group name list name parent-group name rate-limit committed-action filter
policies group name list name parent-group name rate-limit committed-action forward
policies group name list name parent-group name rate-limit committed-action forward-conditional
policies group name list name parent-group name rate-limit committed-action forward-final
policies group name list name parent-group name rate-limit committed-action forward-unconditional
  policies group name list name parent-group name rate-limit committed-action mark mark-info {
    value value;
    mask mask;
  }
  policies group name list name parent-group name rate-limit committed-action parameter {
    action action;
  }
  policies group name list name parent-group name rate-limit conformed-action filter
  policies group name list name parent-group name rate-limit conformed-action forward
  policies group name list name parent-group name rate-limit conformed-action forward-conditional
  policies group name list name parent-group name rate-limit conformed-action forward-final
  policies group name list name parent-group name rate-limit conformed-action forward-unconditional
    policies group name list name parent-group name rate-limit conformed-action mark mark-info {
      value value;
      mask mask;
    }
    policies group name list name parent-group name rate-limit conformed-action parameter {
      action action;
    }
    policies group name list name parent-group name rate-limit exceed-action filter
    policies group name list name parent-group name rate-limit exceed-action forward
    policies group name list name parent-group name rate-limit exceed-action forward-conditional
    policies group name list name parent-group name rate-limit exceed-action forward-final
    policies group name list name parent-group name rate-limit exceed-action mark mark-info {
      value value;
      mask mask;
    }
    policies group name list name parent-group name rate-limit exceed-action parameter {
      action action;
    }

`

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 rla]
    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 rla]
    user@host# edit committed-action mark mark-info
    [edit policies group junose list rate-limiter rule pr rate-limit rla committed-action mark mark-info]
    user@host# set value value
    [edit policies group junose list rate-limiter rule pr rate-limit rla 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 rla committed-action]
    user@host# set committed-action parameter action action
    `

#### Related Topics

- Configuring Mark Actions (SRC CLI)
- Parameter Types

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