cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4384
Views
5
Helpful
4
Replies

Traffic Shaping feature not supported in input policy

xafarali19901
Level 1
Level 1

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 

 match any

policy-map POLICY_SLAP 

 class CLASS_SLAP 

 shape average 1000000

interface GigabitEthernet0/1.10 

encapsulation dot1Q 10 

service-policy output POLICY_SLAP

4 Replies 4

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.

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.

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

Joseph W. Doherty
Hall of Fame
Hall of Fame

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).