
216
9.4 Class Commands
The 'class' command set is used in DiffServ to define:
Traffic Classification
Specify Behavior Aggregate (BA), based on DSCP, and Multi-Field (MF)
classes of traffic (name, match criteria)
This set of commands consists of class creation/deletion and matching, with the class match
commands specifying Layer 3, Layer 2, and general match criteria. The class match criteria are
also known as class rules, with a class definition consisting of one or more rules to identify the
traffic belonging to the class.
Note:
Once a class match criterion is created for a class, it cannot be changed or deleted. To
change or delete a class match critierion, the entire class must be deleted and re-cre
ated.
The CLI command root is
class-map
.
9.4.1 class-map
This command defines a DiffServ class of type match-all, match-any or match-access-group. The
<
classname>
parameter is a case sensitive alphanumeric string from 1 to 31 characters uniquely
identifying the class.
Note:
The class name 'default' is reserved and must not be used here.
When used without any match condition, this command enters the class-map mode. The
<
classname>
is the name of an existing DiffServ class.
Note:
The class name 'default' is reserved and is not allowed here.
The class type of
match-all
indicates all of the individual match conditions must be true for a
packet to be considered a member of the class.
The class type of
match-any
indicates only one of the match criteria must be true for a packet to
belong to the class; multiple matching criteria are evaluated in a sequential order, with the highest
precedence awarded to the first criterion defined for the class.
The class type of
match-access-group
indicates the individual class match criteria are evaluated
based on an access list (ACL). The <
aclid>
parameter is an integer specifying an existing ACL
number (refer to the appropriate ACL documentation for the valid ACL number range). The
<
mac-acl-name>
parameter is a case-sensitive alphanumeric string from 1 to 31 characters
uniquely identifying the MAC access list.(Use the
mac access-list extended
command to create a
MAC access list.)
A
match-access-group
class type copies its set of match criteria from the current rule definition of
the specified ACL number. All elements of a single ACL Rule are treated by DiffServ as a grouped
set, similar to class type all. For any class, at least one class match condition must be specified for
the class to be considered valid.
Note: The class match conditions are obtained from the referenced access list
at the time of
class creation
. Thus, any subsequent changes to the referenced ACL definition do not affect
the DiffServ class. To pick up the latest ACL definition, the DiffServ class must be deleted and
re-created.
This command may be used without specifying a class type to enter the Class-Map Config mode
for an existing DiffServ class.
Содержание DN-80233
Страница 1: ...User Manual Dynamic 24 PORT MANAGED GIGABIT SWITCH DN 80233 ...
Страница 25: ...24 ...
Страница 28: ...27 ...
Страница 29: ...28 ...
Страница 30: ...29 ...
Страница 31: ...30 ...
Страница 107: ...106 and no spaces use a hyphen to designate a range of IDs For example you may set vtrunk set 1 2 5 8 ...
Страница 149: ...148 Default 0 Format vlan priority priority Mode Interface Config ...
Страница 224: ...223 Mode Class Map Config ...
Страница 293: ...292 11 6 51 1 no trapflags This command disables OSPF traps Format no trapflags Mode Router OSPF Config ...