Creating Policies

Configuring QoS

page 24-24

OmniSwitch 6600 Family Network Configuration Guide

April 2006

Creating Policy Conditions

This section describes how to create policy conditions in general. Creating policy conditions for particular 

types of network situations is described later in this chapter.

Note. 

Policy condition configuration is not active until the 

qos apply

 command is entered. See 

“Applying 

the Configuration” on page 24-46

.

To create or modify a policy condition, use the 

policy condition

 command with the keyword for the type 

of traffic you want to classify, for example, an IP address or group of IP addresses. In this example, a 

condition (

c3

) is created for classifying traffic from source IP address 10.10.2.1:

-> policy condition c3 source ip 10.10.2.1

There are many options for configuring a condition, depending on how you want the switch to classify 

traffic for this policy. An overview of the options is given here. Later sections of this chapter describe how 

to use the options in particular network situations.

Note. 

The group options in this command refer to groups of addresses, services, or ports that you config-

ure separately through policy group commands. Rather than create a separate condition for each address, 

service, or port, use groups and attach the group to a single condition. See 

“Using Condition Groups in 

Policies” on page 24-34

 for more information about setting up groups.

More than one condition parameter may be specified. Some condition parameters, like ToS and DSCP, are 

mutually exclusive. Also, source and destination parameters cannot be combined in the same condition. 

For supported combinations of condition parameters, see 

“Condition Combinations” on page 24-6

.

The condition will not be active on the switch until you enter the 

qos apply

 command.

Removing Condition Parameters

To remove a classification parameter from the condition, use 

no

 with the relevant keyword. For example:

-> policy condition c3 no source ip

The specified parameter (in this case, a source IP address) will be removed from the condition (

c3

) at the 

next 

qos apply

.

policy condition keywords

source ip

destination ip

source network group

destination network group

source ip port

destination ip port

source tcp port

destination tcp port

source udp port

destination udp port

service

service group

ip protocol

tos

dscp

source mac

destination mac

source mac group

destination mac group

source vlan

destination vlan

source port

source port group

destination port

destination port group

source interface type

destination interface type

Page 504
Image 504
Open full-size image