Users Guide

Differentiated Services 1549
ip access-list ten-one-subnet
1000 permit ip 10.1.0.0 0.0.255.255 any
exit
ip access-list ten-two-subnet
1000 permit ip 10.2.0.0 0.0.255.255 any
exit
Create a class map (ten-subnet) using the match-any attribute to allow
matching of both access-lists. The choice of using one access list with
multiple permit clauses is also possible.
class-map match-any ten-subnet
match access-group name ten-one-subnet
match access-group name ten-two-subnet
exit
Create a policy map (p1) and include the matching class. Multiple class and
action pairs may be configured in a policy map. Each is processed in order.
policy-map p1 in
class ten-subnet
Configure the action for the matching packets. Matching packets are assigned
to CoS queue 2.
assign-queue 2
Additionally, matching traffic is policed with a two-rate three-color meter.
The first rate is 1000 Kbps with a burst size of 64 kilobits. Conforming traffic
(traffic received at a rate less than 1000 Kbps and burst less than 64 kilobits)
is marked green and transmitted with a DSCP value of 26.
The second rate is set to 5000 Kbps and a burst size of 128 kilobits. Traffic
that exceeds the first rate/burst size but not the second rate/burst size is
marked yellow and transmitted with a DSCP value of 10.
Traffic that exceeds the second rate is dropped.
police-two-rate 1000 64 5000 128 conform-action set-dscp-
transmit af31 exceed-action
set-dscp-transmit af11 violate-action drop
exit
exit
Enable WRED discard for CoS queue 2. Use the random-detect queue-
parms command to set the thresholds for random discard of the green and
yellow marked packets for CoS queue 2 in the event of congestion.