User Manual for the NETGEAR 7300 Series Layer 3 Managed Switch Software
10-4 CLI Commands: Differentiated Services
202-10009-01_060204
class-map
This command defines a new 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: Tthe 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-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). 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.
Note: The CLI mode is changed to Class-Map Config when this command is successfully
executed.
Format
class-map [ match-all ] <classmapname>
Mode Global Config
no class-map
This command eliminates an existing DiffServ class. The <classname> is the name of an existing
DiffServ class.
Note: The class name 'default' is reserved and is not allowed here.