Alcatel-Lucent 6850-48 Guida Di Rete
Configuring QoS
Creating Policies
OmniSwitch AOS Release 6 Network Configuration Guide
September 2009
page 40-31
Creating Policies
This section describes how to create policies in general. For information about configuring specific types
of policies, see
of policies, see
Basic commands for creating policies are as follows:
This section describes generally how to use these commands. For additional details about command
syntax, see the OmniSwitch CLI Reference Guide.
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.
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
.
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
policy classify command. This is useful to test conditions before actually activating the policies on the
switch. See
.
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.
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:
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.
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
4 Use the qos apply command to apply the policy to the configuration. For example:
-> qos apply