01-29-2010 11:12 AM - edited 03-06-2019 09:30 AM
Can I enable rate limit over a layer 2 interface such as a layer 2 trunk port?
Thanks.
01-29-2010 01:00 PM
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.
01-29-2010 01:04 PM
Thanks for your reply.
Can I use rate-limit input/output command?
Can I use service-policy input/output command?
01-29-2010 01:23 PM
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?
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: