33-37
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-06
Chapter 33 Configuring QoS Configuring QoS
To delete a table map, use the no table-map table-map-name global configuration command.
This example shows how to create a DSCP-to-CoS table map. A complete table would typically include
additional map statements for the higher DSCP values. The default of 4 in this table means that
unmapped DSCP values will be assigned a CoS value of 4.
Switch(config)# table-map dscp-to-cos
Switch(config-tablemap)# map from 1 to 1
Switch(config-tablemap)# map from 2 to 1
Switch(config-tablemap)# map from 3 to 1
Switch(config-tablemap)# map from 4 to 2
Switch(config-tablemap)# map from 5 to 2
Switch(config-tablemap)# map from 6 to 3
Switch(config-tablemap)# default 4
Switch(config-tablemap)# end
Switch# show table-map dscp-to-cos
Attaching a Traffic Policy to an Interface
You use the service-policy interface configuration command to attach a traffic policy to an interface and
to specify the direction in which the policy should be applied: either an input policy map for incoming
traffic or an output policy map for outgoing traffic. Input and output policy maps support different QoS
features. See the “Configuring Input Policy Maps” section on page 33-38 and the “Configuring Output
Policy Maps” section on page 33-51 for restrictions on input and output policy maps.
You can attach a service policy only to a physical port. You can attach only one input policy map and
one output policy map per port.
Beginning in privileged EXEC mode, follow these steps to attach a policy map to a port:
Step 4 default {default-value | copy | ignore}Set the default behavior for a value not found in the table map.
Enter a default-value to specify a certain value. For example, in a
DSCP-to-CoS table map, this would be a specific CoS value to apply
to all unmapped DSCP values. The range is from 0 to 63.
Enter copy to map unmapped values to an equivalent value. In a
DSCP-to-CoS table map, this command maps all unmapped DSCP
values to the equivalent CoS value.
Enter ignore to leave unmapped values unchanged. In a
DSCP-to-CoS table map, the switch does not change the CoS value
of unmapped DSCP values.
Step 5 end Return to privileged EXEC mode.
Step 6 show table-map [table-map-name]Verify your entries.
Step 7 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step 1 configure terminal Enter global configuration mode.
Step 2 interface interface-id Specify the port to attach to the policy map, and enter interface
configuration mode. Valid interfaces are physical ports.