Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

rate limit over a layer 2 interface

Can I enable rate limit over a layer 2 interface such as a layer 2 trunk port?

Thanks.

3 REPLIES
Bronze

Re: rate limit over a layer 2 interface

Depending on the switch you are using, you can use the quick and dirty srr-queue bandwidth limit command.

Limits bandwidth to a percentage of port speed. ONLY works on outbound traffic.

Example:

interface fa0/1

speed 100

srr-queue bandwidth limit 10

This example would yield a 10mbps rate-limit.

or

interface fa0/1

speed 10

srr-queue bandwidth limit 30

This example would yieled a 3mbps rate-limit.

Keep in mind this only works on traffic outbound from the port.

New Member

Re: rate limit over a layer 2 interface

Thanks for your reply.

Can I use rate-limit input/output command?

Can I use service-policy input/output command?

Bronze

Re: rate limit over a layer 2 interface

Depends what kind of switch you are using. I know on my 4500s, I can do somthing like this:

policy-map ratelimit-policy
class limitclass
    police 772 kbps 56 kbyte conform-action transmit exceed-action drop

interface GigabitEthernet4/47
switchport access vlan 503
bandwidth 30000
load-interval 60
speed 100
duplex full
spanning-tree portfast
spanning-tree bpduguard enable
service-policy output ratelimit-policy
end

All depends on the capabilities of the switch. What kind are you using?

2654
Views
0
Helpful
3
Replies
CreatePlease to create content