Defining a class, Configuration procedure – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 436

Advertising
background image

45-2

z

The policy name is determined.

z

Apply the QoS policy in Ethernet port view/port group view.

Defining a Class

To define a class, you need to create a class and then define rules in the corresponding class view.

Configuration procedure

Follow these steps to define a class:

To do…

Use the command…

Remarks

Enter system view

system-view

Create a class and enter the
corresponding class view

traffic classifier

classifier-name

[ operator { and | or } ]

Required
By default, the and keyword is
specified. That is, the relation
between the rules in the class view
is logic AND. This operation leads
you to class view.

Define a rule used to match
packets

if-match match-criteria

Required

match-criteria

: Matching rules to be defined for a class.

Table 45-1

describes the available forms of this

argument.

Table 45-1

The form of the match-criteria argument

Form

Description

acl access-list-number

Specifies an ACL to match packets. The access-list-number
argument is in the range 2000 to 4999.
In a class configured with the operator and, the logical relationship
between rules defined in the referenced IPv4 ACL is or.

acl ipv6 access-list-number

Specifies an IPv6 ACL to match IPv6 packets. The
access-list-number

argument is in the range 2000 to 3999.

In a class configured with the operator and, the logical relationship
between rules defined in the referenced IPv6 ACL is or.

any

Specifies to match all packets.

customer-dot1p

8021p-list

Specifies to match packets by 802.1p precedence of the customer
network. The 8021p-list argument is a list of CoS values. You can
provide up to eight space-separated CoS values for this argument.
CoS is in the range 0 to 7.

customer-vlan-id

vlan-id-list

Specifies to match the packets of specified VLANs of user
networks. The vlan-id-list argument specifies a list of VLAN IDs, in
the form of vlan-id to vlan-id or multiple discontinuous VLAN IDs
(separated by space). You can specify up to eight VLAN IDs for this
argument at a time. VLAN ID is in the range 1 to 4094.
In a class configured with the operator and, the logical relationship
between the customer VLAN IDs specified for the
customer-vlan-id

keyword is or.

destination-mac

mac-address

Specifies to match the packets with a specified destination MAC
address.

dscp

dscp-list

Specifies to match packets by DSCP precedence. The dscp-list
argument is a list of DSCP values. You can provide up to eight
space-separated DSCP values for this argument. DSCP is in the
range of 0 to 63.

Advertising