Configuring QoS
Configuring QoS
Use the no form of the appropriate command to delete an existing class map or remove a match criterion.
This example shows how to create access list 103 and configure the class map called class1. The class1 has one match
criterion, which is access list 103. It permits traffic from any host to any destination that matches a DSCP value of 10.
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 create a class map called class2, which matches incoming traffic with DSCP values of 10,
11, and 12.
Switch(config)# class-map match-any class2
Switch(config-cmap)# match ip dscp 10 11 12
Switch(config-cmap)# exit
This example shows how to create a class map called class3, which matches incoming traffic with IP-precedence values
of 5, 6, and 7:
Switch(config)# class-map match-any class3
Switch(config-cmap)# match ip precedence 5 6 7
Switch(config-cmap)# exit
This example shows how to create a parent class-map called parent-class, which matches incoming traffic with VLAN
IDs in the range from 30 to 40.
Switch(config)# class-map match-any parent-class
Switch(config-cmap)# match vlan 30-40
Switch(config-cmap)# exit
Configuring Table Maps
You can configure table maps to manage a large number of traffic flows with a single command. You use table maps to
correlate specific DSCP, IP precedence and CoS values to each other, to mark down a DSCP, IP precedence, or CoS
value, or to assign default values. You can specify table maps in set commands and use them as mark-down mapping
for the policers.
These table maps are supported on the switch:
DSCP to CoS, precedence, or DSCP
CoS to DSCP, precedence, or CoS
Precedence to CoS, DSCP, or precedence
Note these guidelines when configuring table maps:
The switch supports a maximum of 256 unique table maps.
The maximum number of map statements within a table map is 64.
Table maps cannot be used in output policy maps.
Table maps are not supported for violate-action for aggregate policing unless you configure a table map for
exceed-action and no explicit action is configured for violate-action.
Beginning in privileged EXEC mode, follow these steps to create a table map:
608