Technical Documentation

Configuring PTSP Policy Rules (SRC CLI)

Note: For PTSP you must:

  • Set the role of the policy list to junos-ptsp
  • Set the policy list rule type to ptsp-service-rule
  • Set the policy list applicability option to both
  • Create a policer instance.

Use the following configuration statements to configure PTSP policy rules:

policies group name list name rule name {precedence precedence;accounting;application-accounting application-accounting;type [(ptsp-service-rule | ptsp-template)];}

To configure policy rules:

  1. From configuration mode, create a policy rule inside a policy list that has already been created and configured. For example, to create a policy rule called rule1 within a policy list called list1:
    user@host# edit policies group group1 list list1 rule rule1
  2. (Optional) Specify the order in which the policy manager applies the policy rule. Rules are evaluated from lowest to highest precedence value. Precedence has meaning only if two rules have different classifiers and if those classifiers overlap. If this is the case and a packet is received that satisfies both classifiers, then only the action of the rule with the lower precedence value is performed.

    For PTSP policies, enter an integer in the range 1–254.

    [edit policies group group1 list list1 rule rule1] user@host# set precedence precedence
  3. (Optional) Specify whether accounting data is collected for the actions in the policy rule.

    If you specify that accounting data is collected, the SAE begins collecting accounting information when a service that uses the policy rule is activated. When the service is deactivated, the SAE sends the accounting records to the RADIUS accounting server or to a plug-in.

    When you specify multiple actions for accounting, the SAE adds the accounting data for individual actions together to obtain a summary accounting record for that interface direction.

    Accounting is not available for all actions.

    [edit policies group group1 list list1 rule rule1 user@host# set accounting
  4. (Optional) Specify application accounting.

    If PTSP application accounting is configured on the MX Series router, this attribute selects how application accounting is collected. Application accounting is maintained in a flat file on the router and is not collected by the SRC software. Application accounting and rule accounting are mutually exclusive.

    [edit policies group group1 list list1 rule rule1 user@host# set application-accounting application-accounting

    Application accounting can be set to one of the following values:

    • application—Router maintains one counter per subscriber/application.
    • group—Router maintains one counter per subscriber/application group.
    • any—Router maintains one counter per subscriber.
    • A parameter of type applicationAccounting.
  5. Specify the type of policy rule.
    [edit policies group group1 list list1 rule rule1 user@host# set type type

    Where type is one of the following values:

    • ptsp-service-rule—Use the predefined policy template called __svc_rule__ on the MX Series router.
    • ptsp-template—This setting is for future use.

Published: 2010-06-07

Help
|
My Account
|
Log Out