Navigation
Table of Contents
Guide That Contains This Content
[+] Expand All
[-] Collapse All
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:
- 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
- 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 - (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
- (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
- (Optional) Provide a description of the policy rule.[edit policies group dhcp list input rule forward-dhcp]user@host# set description description
- (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";