2-41
Catalyst 3550 Multilayer Switch Command Reference
OL-8566-02
Chapter 2 Catalyst 3550 Switch Cisco IOS Commands
class-map
To define packet classification on a physical-port basis, only one match command per class map is
supported. In this situation, the match-all and match-any keywords are equivalent.
To define packet classification on a per-port per-VLAN basis, you must use the match-all keyword with
the class-map global configuration command. You also must enter the match vlan vlan-list and the
match class-map class-map-name class-map configuration commands. For more information, see the
“match (class-map configuration)” section on page 2-235.
Only one access control list (ACL) can be configured in a class map. The ACL can have multiple access
control entries (ACEs).
Examples This example shows how to configure the class map called class1. class1 has one match criterion, which
is an access list called 103.
Switch(config)# access-list 103 permit any any dscp 10
Switch(config)# class-map class1
Switch(config-cmap)# match access-group 103
Switch(config-cmap)# exit
This example shows how to delete the class map class1:
Switch(config)# no class-map class1
This example shows how to configure a class map called dscp_class whose match criterion is to match
IP DSCP 9. A second class map, called vlan_class, matches traffic on VLANs 10, 20 to 30, and 40 to
class map dscp_class:
Switch(config)# class-map match-any dscp_class
Switch(config-cmap)# match ip dscp 9
Switch(config-cmap)# exit
Switch(config)# class-map match-all vlan_class
Switch(config-cmap)# match vlan 10 20-30 40
Switch(config-cmap)# match class-map dscp_class
Switch(config-cmap)# exit
You can verify your settings by entering the show class-map privileged EXEC command.
Related Commands Command Description
match (class-map
configuration)
Defines the match criteria to classify traffic.
policy-map Creates or modifies a policy map that can be attached to multiple
interfaces to specify a service policy.
show class-map Displays QoS class maps.