This example was implemented on Cisco ASR1001 running IOS Version 15.1(1)S
Traffic Policing for Bandwidth Limiting per vlan sub-interface
Problem or Goal:
If you have a router aggregating different client circuits on one physical interface but segregated by vlans, you will find yourself in a position where you have to rate limit each client according to the bandwidth they are paying for. To achieve this on a cisco router, here is example config.
Cause:
Different fixed-line internet clients/customers aggregated on one physical interface but identified by separate VLANs.
see example topology below
Solution:
// Enter configuration mode
#config t
// The commands below will create a policy to rate limit the client to 1Mbps
#policy-map Limit-1Mb
#class class-default
#police 1024000 192000 conform-action transmit exceed-action drop
#end
// The commands below will create a policy to rate limit the client to 2Mbps
#config t
#policy-map Limit-2Mb
#class class-default
#police 2048000 384000 conform-action transmit exceed-action drop
#end
// Now we need to apply the policy under the sub-interface per client
//For example the client with vlan 200 will be limited to 1Mbps up/down
#config t
#interface GigabitEthernet0/0/1.200
#service-policy input Limit-1Mb
#service-policy output Limit-1Mb
#end
//For example the client with vlan 300 will be limited to 2Mbps up/down
#config t
#interface GigabitEthernet0/0/1.300
#service-policy input Limit-2Mb
#service-policy output Limit-2Mb
#end
#wr
Problem Solved?
Yes