Policy Rules Overview

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. There is only one type of policy rule for PCMM policy lists and AAA policy lists. For JunosE policy lists, you can create JunosE IPv4 or JunosE IPv6 policy rule types. PTSP policy lists support only ptsp service rules. If you are creating a JunosE secondary input policy, the applicability of policy list must be secondary-input. For Junos OS policy lists, you can create the following policy rule types:

Before You Configure Junos OS Policy Rules

The following are prerequisites to using policy rules on routers running Junos OS:

For more information about configuring Adaptive Services PICs, see the Junos OS Services Interfaces Configuration Guide.

Setting the Policy Rule Precedence

Policy lists can have more than one policy rule. Policy rules are assigned a precedence that determines the order in which the policy manager applies policy rules. Rules are evaluated from lowest to highest precedence value. Rules with equal precedence are evaluated in random order.

Note that for Junos OS SCHEDULER and Junos OS POLICER policy rules, precedence is not a factor.

The router classifies packets beginning with the classify condition in the policy list that has the policy rule with the lowest precedence.

For routers running JunosE Software, if you want the router to take two corresponding actions on a packet, you would create a JunosE policy list that has more than one policy rule with the same precedence. For example, you may want a policy rule that marks a packet and a policy rule that forwards the packet to the next interface. Or you could have a policy rule that applies a traffic class and a policy rule that forwards the packet to the next hop.

Related Documentation