rtjensen4 Fri, 01/29/2010 - 13:00

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.

yuhuiyao Fri, 01/29/2010 - 13:04

Thanks for your reply.


Can I use rate-limit input/output command?


Can I use service-policy input/output command?

rtjensen4 Fri, 01/29/2010 - 13:23

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?

Actions

This Discussion