Users Guide

Layer 2 Switching Commands 672
Example
The following example shows how to specify the DiffServ class name of
“DELL.”
console(config)#class-map match-all DELL
console(config-classmap)#exit
console(config)#policy-map DELL1 in
console(config-policy-map)#class DELL
class-map
Use the class-map command in Global Configuration mode to define a new
DiffServ class of type match-all. To delete an existing class, use the no form of
this command.
Syntax
class-map [match-any|match-all] class-map-name
no class-map class-map-name
class-map-name — a case-sensitive alphanumeric string from 1 to 31
characters uniquely identifying an existing DiffServ class.
match-any—The class map will match if any of the specified criteria
matches.
match-all—The class map will match only if all of the specified criteria
match.
Default Configuration
The class-map command has no defaults.
Command Mode
Global Configuration mode
User Guidelines
Enter the class-map command without the match-all/match-any parameter
and an existing class-map-name to modify the named class map.