30-32
Catalyst2950 and Catalyst2955 Switch Software Configuration Guide
78-11380-10
Chapter30 Co nf iguring QoS
Configuring Standard QoS
Beginning in privileged EXEC mode, follow these steps to create a policy map:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 access-list access-list-number permit
{source source-wildcard | host source |
any}
or
access-list access-list-number
{permit | remark} protocol
{source source-wildcard | host source |
any} [operator port] {destination
destination-wildcard | host destination |
any} [operator port] [dscp dscp-value]
[time-range time-range-name]
or
mac access-list extended name
permit {any | host source MAC address}
{any | host destination MAC address}
[aarp | amber | appletalk |dec-spanning |
decnet-iv | diagnostic | dsm | etype-6000 |
etype-8042 | lat | lavc-sca | mop-console |
mop-dump | msdos | mumps | netbios |
vines-echo |vines-ip | xns-idp]
Create an IP standard or extended ACL for IP traffic or a Layer 2 MAC
ACL for non-IP traffic, repeating the command as many times as
necessary.
For more information, see the Classifying Traffic by Using ACLs
section on page 30-27.
Note Deny statements are not supported for QoS ACLs. See the
Classification Based on QoS ACLs section on page30-5 for
more details.
For more information on the mac access-list ex ten ded nam e
command, see the Creating Named MAC Extended ACLs section on
page 29-18.
Step3 policy-map policy-map-name Create a policy map by entering the policy map name , an d ent er
policy-map configuration mode.
By default, no policy maps are defined.
The default behavior of a policy map is to set the DSCP to 0 if the
packet is an IP packet and to set the CoS to 0 if the packet is tagged. No
policing is performed.
Step4 class class-map-name [access-group name
acl-index-or-name]Define a traffic classific ation, and enter policy -map class co nfigur ation
mode.
By default, no policy map class maps are defined.
If a traffic class has already been defined by using the class-map global
configuration command, specify its name for class-ma p-name in this
command.
For access-group name acl-index-or-name, specify the number or name
of the ACL created in Step 2.
Note In a policy map, the class named class-default is not supported.
The switch does not filter traffic based on the policy map
defined by the class class-default policy-map configuration
command.