2-2
Follow these steps to define a class:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a class and enter class
view
traffic classifier
tcl-name
[
operator
{
and
|
or
} ]
Required
By default, the relation between
match criteria is
and
.
Define a match criterion
if-match match-criteria
Required
Display class information
display traffic classifier
{
system-defined
|
user-defined
} [
tcl-name
]
Optional
Available in any view
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
.
acl ipv6
{
access-list-number
|
name
acl-name
}
Specifies to match an IPv6 ACL specified by its number or name.
The
access-list-number
argument specifies an ACL by its
number, which ranges from 2000 to 3999; 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 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, 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.