cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
21872
Views
0
Helpful
5
Replies

Rate limit 2960 Port to 1 MB

imranraheel
Level 1
Level 1

Please let me know how to rate limit the 2960 switch port to 1 MB.

I have made the specified chnages , how ever still it is reaching more tha 1 MB

Hard coded the bandwidth of port to 10 MB and have applied the specified command

srr-queue bandwidth limit 10

Still the computer on that port is reaching more than 1 MB

5 Replies 5

sridsdale
Level 1
Level 1

In which direction does the traffic surpass 1Mb/s?

The srr queue commands are for egress only. If you want to limit ingress as well then you need to add a service policy to the interface that polices traffic to the required rate.

Also the srr-queue bandwidth limit command is not exact so you may see traffic egress the port above the set rate.

jbrenesj
Level 3
Level 3

1) Enabled QoS globally...

2960(config)#mls qos

2) Configure an ACL to define the matched traffic...

2960(config)#access-list 111 permit ip any any

3) Configure a class map for the matched traffic...

2960(config)#class-map traffic

2960(config-cmap)#match access 111

4) Configure a policy-map to define action...

2960(config)#policy-map Control

2960(config-pmap)#class traffic

2960(config-pmap-c)#police 10000000 8000 exceed-action drop

5) Attached the policy-map to the interface.

a) Example

-In this case, I'll attach the policy map to port_1....

2960(config)#int fa0/1

2960(config-if)#service-policy input Control

>>>>>> This will rate-limit traffic coming from the PC

Tried this solution on my WS-C2960-8TC-S V.12.2 but class-map and policy-map command does not seem to work.

Is there any solution for that?

Hi Frank,

try to upgrade ios and then try or you already on latest one ??

here is the example from my 2960 (55)

mls qos

ip access-list extended ACL_SLAP
permit ip any any

class-map match-all CLASS_SLAP
  match access-group name ACL_SLAP

policy-map POLICY_SLAP
  class CLASS_SLAP
    police 1000000  exceed-action drop

interface GigabitEthernet0/2
service-policy input POLICY_SLAP

thanks

Hello Singhamm,

We have the following commands which you gave on our cisco 2960 switch but its just limiting my upload traffic (Egress) we can not limit our download speed(ingress),

We have checked the speed for the following on that ports via speedtest.in but still we are getting the maximum for the download. i am attaching the configuration please help me with this and do reply on naitikchaitanya@gmail.com

I will be grateful if i receive help from any one.

Thanks.

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: