Quick Reference Guide
Quality of Service | 181
The classname parameter is a case-sensitive alphanumeric string from 1 to 31 characters that you create to
uniquely identify the class.
For example, entering class-map match-all Dallas means “Create a class named Dallas that must
match all statements in the policy.”
After entering the command, and a new
classname is defined, this command invokes the Class Map Config
mode — “(Config-classmap)#” prompt. Within that mode, you can continue to refine the definition of the
class.
After exiting the Class Map Config mode, you can reenter the mode to edit the named class by using the
command
class-map existing_classname, where existing_classname is the classname that you defined earlier.
The example below creates a class named “cl-map-1”. The map requires that all rules in the list must be
matched. If any of the rules are not a match for the traffic, the traffic is not a member of that class. In this
case, the traffic must carry a destination IP address in the 10.1.1.0 network and have a destination port of 7:
Figure 12-137. Using the class-map match-all Command
Note that the example below, looks for packets with an ip-precedence of 1, but also references another
class map (cl-map-1):
Figure 12-138. Using the class-map match-all Command
To delete an existing class, use the command no class-map existing_classname from the Global Config
mode. This command may be issued at any time; if the class is currently referenced by one or more policies
or by any other class, this deletion attempt shall fail.
Note: The word “default” is reserved and must not be used as a class name.
Note: Class match conditions are obtained from the referenced access list (ACL) 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, delete and recreate the class.
class-map match-all cl-map-1
match dstip 10.1.1.0 255.255.255.0
match dstl4port 7
exit
class-map match-all cm-3
match ip precedence 1
match class-map cl-map-1
exit