10-25-2016 10:19 AM - edited 03-08-2019 07:55 AM
Hi,
I have implemented router on a stick configuration for my two VLAN in the network. I want to limit bandwidth up to 1 Mbps for my VLAN networks, therefore i configured class-map and policy map on my Cisco 1941 router. By using "service-policy output POLICY_SLAP " command under my sub interface i am able to limit the download speed up to 1 Mbps, but when i enter the command "service-policy input POLICY_SLAP" to limit the upload speed up to 1 Mbps it shows me the following error.
"Traffic Shaping feature not supported in input policy"
Following is the config of my router
Classclass-map match-any CLASS_SLAP
policy-map POLICY_SLAP
class CLASS_SLAP
shape average 1000000
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
service-policy output POLICY_SLAP
10-25-2016 10:43 AM
The problem is that the traffic has already been received on the interface and therefore cannot be shaped. There are no queues on the interface for that. Try ingress policing instead.
10-25-2016 11:08 AM
Hi gpauwen,
Thanks for the reply.
Could you please guide me how i will configure ingress policing, as i want to limit my upload and download speed to 1 Mbps.
10-25-2016 11:33 AM
Hello.
it would look like this:
class-map match-all INGRESS_1MB
match access-group 100
policy-map POLICE_INGRESS
class INGRESS_1MB
police 1000000 conform-action transmit exceed-action drop
access-list 100 permit ip any x.x.x.x x.x.x.x
The 'x' is your local LAN. Apply the service policy inbound:
interface GigabitEthernet0/1.10
service-policy input POLICE_INGRESS
10-25-2016 10:51 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages wha2tsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
"Traffic Shaping feature not supported in input policy"
That's correct. Shaping is an egress only feature. As already noted by gpauwen, you can, instead, police ingress (or, BTW, egress).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide