From: Sasa Milic (smilic2@pexim.co.yu)
Date: Thu May 31 2007 - 05:15:46 ART
That won't do the job for several reasons:
1. Question says that interface Serial 0/0 should be configured, not
Ethernet 0/0.
2. Web server is on Ethernet 0/0 interface, and since you have to police
traffic, you have to do outbound policy on Serial0/0.
3. Since this policy would match traffic from web server to client, there
won't be URLs in replies! You cannot match by URL, you have to match by
mime-type when you police replies from web server.
It should be:
class-map match-all image
match protocol http mime "image/*"
!
policy-map web-traffic
class image
drop
class class-default
police cir 1000000
conform-action transmit
exceed-action drop
!
interface Serial 0/0
service-policy output web-traffic
!
Regards,
Sasa
--------------------------------------------
Sasa Milic, CCIE #8635 (R&S)
----- Original Message -----
From: "To Be CCIE" <ccierocks@gmail.com>
To: "Shamin" <ccie.xpert@gmail.com>
Cc: "Cisco certification" <ccielab@groupstudy.com>
Sent: Wednesday, May 30, 2007 9:04 PM
Subject: Re: QOS question
> I'd do something like this:
>
>
> class-map match-all WEB_PICS
> match protocol http url "www.cisco.com/directory/*"
> match protocol http url "*.jpg|*.jpeg"
>
> class-map match-all WEB_TRAFFIC
> match protocol http url "www.cisco.com/directory/*"
>
> policy-map WEB
> class WEB_PICS
> drop
> class WEB_TRAFFIC
> police 100000 conform-action transmit exceed-action drop
> int e0/0
> service-policy input WEB
>
> On 5/27/07, Shamin <ccie.xpert@gmail.com> wrote:
>>
>> Hi ,
>>
>> Best of luck on your preprations.
>>
>> I have a question in QOS.The requirement is as follows
>>
>> FR
>> (E0/0) R1 (s0/0) <---------------------------> (S0/0) R2 (E0/0)
>>
>> There is a webserver on the E0/0 interface of R1 which hosts a website
>> www.cisco.com/directory/ .
>>
>> Configure R1's s0/0 interface, so that traffic to the client's on R2's
>> E0/0
>> network follows
>> the following rule.
>>
>> 1)Traffic from this website to the clients are limited to 1MB.
>> 2)If the traffic from this website to the clients, contains any Jpg or
>> Jpeg
>> files , the traffic should be dropped.
>>
>> I think this should follow a parent and child policy.But could not get my
>> logic correct.
>>
>> regards
>> shamin
>>
>> _______________________________________________________________________
>> Subscription information may be found at:
>> http://www.groupstudy.com/list/CCIELab.html
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Fri Jun 01 2007 - 06:55:23 ART