cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5541
Views
0
Helpful
3
Replies

rate limit over a layer 2 interface

yuhuiyao
Level 1
Level 1

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

Thanks.

3 Replies 3

rtjensen4
Level 4
Level 4

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.

Thanks for your reply.

Can I use rate-limit input/output command?

Can I use service-policy input/output command?

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?

Review Cisco Networking for a $25 gift card