H3C Technologies H3C S5120 Series Switches User Manual

Page 351

Advertising
background image

2-2

To do…

Use the command…

Remarks

Create a class and enter class
view

traffic classifier tcl-name
[ operator { and | or } ]

Required

By default, the relation between
match criteria is AND.

The operator of a class can be
AND or OR.

z

AND: A packet is
considered belonging to a
class only when the packet
matches all the criteria in the
class.

z

OR: A packet is considered
belonging to a class if it
matches any of the criteria
in the class.

Define a match criterion

if-match match-criteria

Required

match-criteria: Matching rules to be defined for a class.

Table 2-1

describes the available forms of this

argument.

Table 2-1 The form of the match-criteria argument

Form

Description

acl { access-list-number | name
acl-name }

Specifies to match an IPv4 ACL specified by its number or name.
The access-list-number argument specifies an ACL by its
number, which ranges from 2000 to 4999; the name acl-name
keyword-argument combination specifies an ACL by its name.

In a class configured with the operator and, the logical
relationship between rules defined in the referenced IPv4 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, in the range of 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.

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 in the range of 0 to 63.

ip-precedence
ip-precedence-list

Specifies to match packets by IP precedence. The
ip-precedence-list argument is a list of IP precedence values in
the range of 0 to 7.

protocol protocol-name

Specifies to match the packets of a specified protocol. The
protocol-name argument can be IP.

service-vlan-id vlan-id-list

Specifies to match the packets of the VLANs of the operator’s
network. The vlan-id-list argument is 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 of 1 to 4094.

Advertising