user manual

39-55
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
OL-21521-01
Chapter 39 Configuring QoS
Configuring Standard QoS
To delete an existing policy map, use the no policy-map policy-map-name global configuration
command. To delete an existing class map, use the no class-map [match-all | match-any]
class-map-name global configuration command. To remove a match criterion, use the no match
{access-group acl-index-or-name | ip dscp | ip precedence} class-map configuration command.
This example shows how to configure a class map to match IP DSCP and IPv6:
Switch(config)# Class-map cm-1
Switch(config-cmap)# match ip dscp
10
Switch(config-cmap)# match protoco
l ipv6
Switch(config-cmap)# exit
Switch(config)# Class-map cm-2
Switch(config-cmap)# match ip dscp
20
Switch(config-cmap)# match protoco
l ip
Switch(config-cmap)# exit
Switch(config)# Policy-map pm1
Switch(config-pmap)# class cm-1
Switch(config-pmap-c)# set dscp 4
Switch(config-pmap-c)# exit
Switch(config-pmap)# class cm-2
Switch(config-pmap-c)# set dscp 6
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface G1/0/1
Switch(config-if)# service-policy input
pm1
This example shows how to configure a class map that applies to both IPv4 and IPv6 traffic:
Switch(config)# ip access-list 101 permit ip any any
Switch(config)# ipv6 access-list i
pv6-any permit ip any any
Switch(config)# Class-map cm-1
Switch(config-cmap)# match access-
group 101
Switch(config-cmap)# exit
Switch(config)# Class-map cm-2
Switch(config-cmap)# match access-
group name ipv6-any
Switch(config-cmap)# exit
Switch(config)# Policy-map pm1
Switch(config-pmap)# class cm-1
Switch(config-pmap-c)# set dscp 4
Switch(config-pmap-c)# exit
Switch(config-pmap)# class cm-2
Switch(config-pmap-c)# set dscp 6
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface G0/1
Switch(config-if)# switch mode acc
ess
Switch(config-if)# service-policy
input pm1
Step 6
show class-map Verify your entries.
Step 7
copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose