26-20
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapt er 26 Conf i gurin g QoS
Configuring QoS
This example shows how to create a Layer 2 MAC ACL with a permit statement. The statement allows
traff ic from the host with MAC address 0001.0000.0001 to the host with MAC address 0002.0000.0001.
Switch(config)# mac access-list extended maclist1
Switch(config-ext-macl)# permit host 0001.0000.0001 host 0002.0000.0001

Classifying Traffic by Using Class Maps

You use the class-map global configuration command to isolate a specific traffic flow (or class) from
all oth er traf f ic a nd to name it. The clas s map d efines the cr iteria to use to match ag ainst a speci fic t raf fi c
flow to further classify it. Match statements can only include ACLs. The match criterion is defined with
one match st atement entered w ithin the class-m ap configuratio n mode.
Note You can also create class maps during policy map creatio n by using the class policy-map configuration
comm and. For mo re inform ation , see th e Classifyi ng, Po lic ing, a nd Mar king Traffic by Using Po licy
Maps section on page 26-21.
Beginning in privileged EXEC mode, follow these steps to create a class map and to define the match
criterion to classify traffic:
Command Purpose
Step 1 configure terminal Enter g lo bal c onfigurat ion m ode.
Step 2 access-list access-list-number permit
{source source-wildcard | host source |
any}
or
access-list access-list-number
{perm it | remark} prot oco l
{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 | dec-spanning | decnet-i v |
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 MA C
AC L for non-IP traffic, repeating the command as many times as
necessary.
For more inf orma tion, see t he Guide lines for App lying ACLs to
Physica l Inte rfaces section on page 25-6 and the Classi fyin g Traf fic
by Using ACLs section on page 26-16.
For more inf orm a tio n o n th e m ac a cc es s-l is t ex te nd ed name
command , see the Creating Named MA C Extended ACLs section on
page 25-18.
Note Deny statements are not supported for QoS ACLs. See the
Classification Based on QoS ACLs section on page 26-5 for
more details.
Step 3 class-map class-map-name Create a class map, and ent er class-ma p configurati on mode.
By defau lt, no c lass ma ps a re de fined.
For c lass-map-na me, specify the name of the class map.