Configuring Static PCC Rules for Routers Running Junos OS and Acting as PCEF (SRC CLI)
Use the following configuration statements to configure static PCC rules, which enable the SRC software to provision policies (activated only using name) to the routers (Services Control Gateways) acting as PCEF and running Junos OS through the Gx interface by using the Gx router driver.
You can create multiple static PCC rules. You can configure the usage monitoring information for the service having static PCC rules even though the SRC software does not support monitoring key association for the static PCC rules.
For creating a static PCC rule, you must:
Set the role of the policy list to junos-gx
Set the policy list rule type to gx-static-pcc-rule
Set the policy list applicability option to both
Precedence mapping is not supported for the static PCC rule.
- From configuration mode, create a static PCC rule inside
a policy list that has already been created and configured. For example,
to create a static PCC rule called statpcc-rul1-name within a policy
list called gx-list:[edit]user@host# edit policies group GXnew list gx-list rule statpcc-rul1-name
- Set the type of policy rule to gx-static-pcc-rule.[edit policies group GXnew list gx-list rule statpcc-rul1-name]user@host# set type gx-static-pcc-rule
- (Optional) Enable the accounting flag so that the SRC
software requests the usage monitoring information from the Services
Control Gateway.
Note If you enable the accounting functionality for a rule in the policy group, the accounting functionality is enabled for all rules in the policy group.
When you enable the accounting functionality, you must configure the USAGE_REPORT event trigger for the subscriber profiles and configure the granted service unit for the subscribed services.
[edit policies group GXnew list gx-list rule statpcc-rul1-name]user@host# set accounting - From configuration mode, access the configuration statement
that configures the static PCC rule.[edit]user@host# edit policies group GXnew list gx-list rule statpcc-rul1-name static-pcc-rule
- (Optional) Specify a static PCC rule name.
Note You must configure either rule name or rule base name for the static PCC rule. The rule name should be unique for each IP CAN session.
[edit policies group GXnew list gx-list rule statpcc-rul1-name static-pcc-rule]user@host# set charging-rule-name charging-rule-name - (Optional) Specify a name of a PCC rule group residing
at the Services Control Gateway.
Note You must configure either rule name or rule base name for the static PCC rule. The rule base name should be unique for each IP CAN session.
[edit policies group GXnew list gx-list rule statpcc-rul1-name static-pcc-rule]user@host# set charging-rule-base-name charging-rule-base-name - (Optional) Specify a description for the static PCC rule.[edit policies group GXnew list gx-list rule statpcc-rul1-name static-pcc-rule]user@host# set description description
- (Optional) Verify your configuration.
[edit policies group GXnew list gx-list rule statpcc-rul1-name] user@host# show accounting; precedence precedence; static-pcc-rule { charging-rule-name crname; } type gx-static-pcc-rule;