Skip to main content

Limiting network speeds on Cisco devices

More
16 years 7 months ago #26108 by toddwoo
I'm having trouble getting an interface on a cisco device to rate limit.

I'm trying to cut down the speed of an interface that ties one area into our service provider.

I'm not even 100% sure there is a way to do this on a layer 2 switch.

Anyone got any thoughts?
More
16 years 7 months ago #26118 by skepticals
I don't think you can rate limit on a layer 2 switch. I know you can do it on layer 2 device.

How are you trying to do it?
More
16 years 7 months ago #26136 by S0lo
Check the "speed" and "duplex" commands. For example:

[code:1]
switch(config-if)# speed ?

10 Force 10 Mbps operation
100 Force 100 Mbps operation
auto Enable AUTO speed configuration

switch(config-if)# speed 10
[/code:1]

Studying CCNP...

Ammar Muqaddas
Forum Moderator
www.firewall.cx
More
16 years 7 months ago #26138 by toddwoo
Ack... Should have included what i'm trying.

I need to rate limit more granularly than 10 or 100 so using the line speed is out.

I'm using a policy on the interface.

config:

policy-map 5mblimit
class layer2
police 5240000 163750 163750 conform-action transmit exceed-action drop
!
!

f0/1
...
...
service-policy input 5mblimit
no shut


I have a bunch of different policy-maps made 5, 10, 25, 50. But i'm not seeing the speed limited the way I would believe it should be.

Is this the right approach? Should I try something different?
More
16 years 7 months ago #26143 by skepticals
Humm... I have never tried to rate-limit on a Layer 2 device.

How are you marking your traffic? What is the config for class layer2?
More
16 years 7 months ago #26146 by toddwoo
mac access-list extended layer2
permit any any

and

class-map match-all layer2
match access group name layer2

I'm pretty sketchy about all of this, which makes it pretty easy for me to screw things up...
Time to create page: 0.129 seconds