
Creating Policies Configuring QoS
page 26-30 OmniSwitch 6800/6850/9000 Network Configuration Guide June 2006
Creating Policy Rules
This section describes in general how to create or delete policy rules and rule parameters. See later
sections of this chapter for more information about creating particular types of policy rules.
To create a policy rule, use the policy rule command and specify the name of the rule, the desired condi-
tion, and the desired action.
In this example, condition c3 is created for traffic coming from IP address 10.10.8.9, and action a7 is
created to prioritize the flow. Policy rule rule5 combines the condition and the action, so that traffic arriv-
ing on the switch from 10.10.8.9 will be placed into the highest priority queue.
-> policy condition c3 source ip 10.10.8.9
-> policy action a7 priority 7
-> policy rule rule5 condition c3 action a7
The rule (rule5) will only take effect after the qos apply command is entered. For more information about
the qos apply command, see “Applying the Configuration” on page 26-47.
The policy rule command may specify the following keywords:
In addition, a policy rule may be administratively disabled or re-enabled using the policy rule command.
By default rules are enabled. For a list of rule defaults, see “Policy Rule Defaults” on page 26-10.
Information about using the policy rule command options is given in the next sections.
Configuring a Rule Validity Period
A validity period specifies the days and times during which a rule is in effect. By default there is no valid-
ity period associated with a rule, which means the rule is always active.
To configure the days, months, times, and/or time intervals during which a rule is active, use the policy
validity period command. Once the validity period is defined, it is then associated with a rule using the
policy rule command. For example, the following commands create a validity period named vp01 and
associate it with rule r01:
-> policy validity period vp01 hours 13:00 to 19:00 days monday friday
-> policy rule r01 validity period vp01
Note the following when using validity periods to restrict the times when a rule is active:
• Only one validity period is associated with a policy rule. Each time this command is entered with a
validity period name specified, the existing period name is overwritten with the new one.
• A rule is only in effect when all the parameters of its validity period are true. In the above example,
rule r01 is only applied between 13:00 and 19:00 on Mondays and Fridays. During all other times and
days, the rule is not applied.
policy rule keywords
precedence
validity period
save
log
log interval
count
trap
Comentarios a estos manuales