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

# Adding a Policy Rule (SRC CLI)

You create policy rules within policy lists. Use the following configuration statements to create a policy rule:

`

policies group name list name rule name {
  type type ;
  precedence precedence ;
  accounting;
  description description ;
}

`

To add a policy rule:

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 forward-dhcp within policy list input:
   `
   user@host# edit policies group dhcp list input rule forward-dhcp
   `
2. Specify the type of policy rule.

   The type of policy rule that you can create depends on the type and applicability of the policy list in which you create the policy rule.

   `
   [edit policies group dhcp list input rule forward-dhcp]
   user@host# set type type
   `
3. (Optional) Specify the order in which the policy manager applies rules.
   `
   [edit policies group dhcp list input rule forward-dhcp]
   user@host# set precedence precedence
   `
4. (Optional) Specify whether accounting data is collected for the actions specified in the rule.
   `
   [edit policies group dhcp list input rule forward-dhcp]
   user@host# set accounting
   `
5. (Optional) Provide a description of the policy rule.
   `
   [edit policies group dhcp list input rule forward-dhcp]
   user@host# set description description
   `
6. (Optional) Verify your policy rule configuration.

       [edit policies group dhcp list input rule forward-dhcp]
       user@host# show
       type junose-ipv4;
       precedence 200;
       accounting;
       description "Forward all dhcp packets from client to server";

#### Related Topics

- Before You Configure SRC Policies
- Enabling the Policy Configuration on the SRC CLI
- Overview of Policy Rules
- Policy Information Model
- Adding a Policy Rule

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