There is a 2 way to configure the QOS bandwidth SHaping on port in CIsco L2/L3 switches.
1-SRR(Only Download traffic can be controlled )
2-Service Policy.(Only one direction you can control).
if you want to be both then you can configure the both SRR and Service policy on same port .
SRR
srr-queue bandwidth limit %
You have to set the bandwidth as a percentage of the link speed. The options are 10-99 percent. This means that if you want a limit less than 10Mb you must set the port’s physical speed to 10 and the duplex to full. You will then have to statically configure the client to 10/full. This, however, only limits the egress traffic.
srr-queue bandwidth limit 10
Service Policy
We use this to match and limit our ingress traffic.
First, you must enable mls qos on your switch, otherwise your matching won’t work.
Make Sure you have enabled the mls qos command .
mls qos
1-Next we define our class map. We have it set to match ip traffic with DSCP set to 0.
description Bandwidth Control
match ip dscp default
2-We then create policy maps that have our desired speeds:
policy-map 8meg
class rate-limit
police 8192000 192000 exceed-action drop
3-Last we apply this to the interface:
int fa0/1
service-policy input 8meg
No comments:
Post a Comment