Adding a Policy Rule
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:
- 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:
- 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.
- (Optional) Specify the order in which the policy manager applies rules.
- (0ptional) Specify whether accounting data is collected for the actions specified in the rule.
- (Optional) Provide a description of the policy rule.
- (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";
