You may want to try this on the router:

class-map match-any CUSTOMER
 match vlan 240
 match vlan 241
!
policy-map POLICE-CUSTOMER
 class CUSTOMER
  police cir 250000000
   conform-action transmit
   exceed-action drop
!
interface GigabitEthernet1/1
 service-policy input POLICE-CUSTOMER
!

If this is on the switch, you may want to use aggregate policer, as it
was designed for this precise purpose.


--
Marko Milivojevic - CCIE #18427 (SP R&S)
Senior CCIE Instructor - IPexpert

On Wed, Jan 23, 2013 at 1:09 AM, Onur Gashi <[email protected]> wrote:
> Hello,
>
> First of all sorry for all confusion, and thank you for your time!
>
> I'd like to rate limit two points of a clinet with two different vlans which 
> are terminated in two sub-interfaces with the same policy-map. So basically 
> the client would have a shared limit in both locations.
>
> So the client basically has a limit of max. 250Mbps in both locations 
> together. I want to be able to rate limit the client in two different vlans 
> with one limit.
>
> Thanks again!
>
>
>
>
>>________________________________
>> From: imad Abdallah <[email protected]>
>>To: Onur Gashi <[email protected]>; "[email protected]" 
>><[email protected]>
>>Sent: Wednesday, January 23, 2013 9:52 AM
>>Subject: RE: [OSL | CCIE_RS] Traffic Shaping
>>
>>
>>
>>Hi Onur,
>>
>>
>>What would you exactly like to do with shaping that you can not accomplish 
>>with outbound ts?
>>
>>
>>> Date: Wed, 23 Jan 2013 00:34:36 -0800
>>> From: [email protected]
>>> To: [email protected]
>>> Subject: [OSL | CCIE_RS] Traffic Shaping
>>>
>>> Hello,
>>>
>>> I've been trying to shape ingress traffic for two sub interfaces with a 
>>> common class-map, so they will have a shared limit. So far unsuccessful...
>>> Tried to create a class-map to match a particular Access-list with the IP 
>>> addresses of both sub interfaces, applied the class-map to policy-map, and 
>>> tried to apply it to both sub interfaces, I think I need to apply this 
>>> limit to the outbound interfaces, not to the sub interfaces where the 
>>> traffic comes inbound.
>>>
>>> class-map match-all NET
>>>   match access-group name NET-ACL
>>>
>>> policy-map NET
>>>   class NET
>>>     police cir 256000000
>>>
>>> service-policy output NET  --- to sub interface 1/1.240
>>> service-policy output NET  --- to sub interface 1/1.241
>>>
>>> ip access-list standard NET-ACL
>>>  permit 10.15.16.0 0.0.0.3
>>>  permit 10.15.16.4 0.0.0.3
>>>
>>> If there is a possible solution to avoid applying this policy-map to the 
>>> outbound interface, I'd like to see it.
>>>
>>> Is there a way to achieve this?
>>>
>>>
>>> Thanks in advance.
>>>
>>> Regards,
>>> Onur Gashi
>>> _______________________________________________
>>> For more information regarding industry leading CCIE Lab training, please 
>>> visit www.ipexpert.com
>>>
>>> Are you a CCNP or CCIE and looking for a job? Check out 
>>> www.PlatinumPlacement.com
>>>
>>> http://onlinestudylist.com/mailman/listinfo/ccie_rs
>>
>>
>>
> _______________________________________________
> For more information regarding industry leading CCIE Lab training, please 
> visit www.ipexpert.com
>
> Are you a CCNP or CCIE and looking for a job? Check out 
> www.PlatinumPlacement.com
>
> http://onlinestudylist.com/mailman/listinfo/ccie_rs
_______________________________________________
For more information regarding industry leading CCIE Lab training, please visit 
www.ipexpert.com

Are you a CCNP or CCIE and looking for a job? Check out 
www.PlatinumPlacement.com

http://onlinestudylist.com/mailman/listinfo/ccie_rs

Reply via email to