- Posts: 173
- Thank you received: 0
Limiting network speeds on Cisco devices
16 years 11 months ago #26108
by toddwoo
Limiting network speeds on Cisco devices was created 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?
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?
- skepticals
- Offline
- Elite Member
-
Less
More
- Posts: 783
- Thank you received: 0
16 years 11 months ago #26118
by skepticals
Replied by skepticals on topic Re: Limiting network speeds on Cisco devices
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?
How are you trying to do it?
16 years 11 months ago #26136
by S0lo
Studying CCNP...
Ammar Muqaddas
Forum Moderator
www.firewall.cx
Replied by S0lo on topic Re: Limiting network speeds on Cisco devices
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]
[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
16 years 11 months ago #26138
by toddwoo
Replied by toddwoo on topic Re: Limiting network speeds on Cisco devices
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?
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?
- skepticals
- Offline
- Elite Member
-
Less
More
- Posts: 783
- Thank you received: 0
16 years 11 months ago #26143
by skepticals
Replied by skepticals on topic Re: Limiting network speeds on Cisco devices
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?
How are you marking your traffic? What is the config for class layer2?
16 years 11 months ago #26146
by toddwoo
Replied by toddwoo on topic Re: Limiting network speeds on Cisco devices
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...
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.210 seconds