Alcatel-Lucent 6600 Switch User Manual


 
Creating Policies Configuring QoS
page 24-22 OmniSwitch 6600 Family Network Configuration Guide April 2006
Creating Policies
This section describes how to create policies in general. For information about configuring specific types
of policies, see “Policy Applications” on page 24-49.
Basic commands for creating policies are as follows:
policy condition
policy action
policy rule
This section describes generally how to use these commands. See “Policy Applications” on page 24-49 for
information about creating specific types of policies. For additional details about command syntax, see the
OmniSwitch CLI Reference Guide.
Note. A policy rule may include a policy condition or a policy action that was created through Policy-
View rather than the CLI. But a policy rule, policy action, or policy condition may only be modified
through the source that created it. For example, if an action was created in PolicyView, it may be included
in a policy rule configured through the CLI, but it cannot be modified through the CLI.
Policies are not used to classify traffic until the qos apply command is entered. See “Applying the Config-
uration” on page 24-46.
To view information about how the switch will classify particular condition parameters, use the show
policy classify command. This is useful to test conditions before actually activating the policies on the
switch. See “Testing Conditions” on page 24-32.
Quick Steps for Creating Policies
Follow the steps below for a quick tutorial on creating policies. More information about how to configure
each command is given in later sections of this chapter.
1 Create a policy condition with the policy condition command. For example:
-> policy condition cond3 source ip 10.10.2.3
Note. (Optional) Test the rule with the show policy classify command using information from the policy
condition. For example:
-> show policy classify l3 source ip 10.10.2.3
This command displays information about whether or not the indicated parameter may be used to classify
traffic based on policies that are configured on the switch.
2 Create a policy action with the policy action command. For example:
-> policy action action2 priority 7
3 Create a policy rule with the policy rule command. For example:
-> policy rule my_rule condition cond3 action action2