cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
572
Views
3
Helpful
6
Replies

2975 limit port bandwidths

mcusine
Level 1
Level 1

Hi,

I am trying to limit to 10 MB one gigabitethernet interface.

I am trying to apply the following :

policy-map bedsides
description Limite 10Mb Bedsides
class Bedsides

math ip
  police 10000000 8000 exceed-action drop
class class-default
  police 10000000 8000 exceed-action drop

interface xx

service-police input bedsides

I need to math multicast traffic only or all traffic, if I configure math any the switch give a message that it's not possible due a interface type.

I configured IP and a class-default.

What is the best way to limit the traffic in the switch model?. Any other option ?. Any command to check it's working fine?.

Thanks in advance and best regards,

Mauricio

6 Replies 6

Leo Laohoo
Hall of Fame
Hall of Fame

I am trying to limit to 10 MB one gigabitethernet interface.

Try this basic command:

interface

speed 10

or

interface  

speed auto 10

Hi,

Thanks for your answer and I know these possibility. I am looking for other solution configuring police or something else.

Any other idea?.

Thanks and best regards,

Mauricio

Hi Mauricio,

You can allocate specific bandwidth to one interface. also to you can do the same to Vlan's.

See the below two individual steps may help in your scenario.


STEP-1:

Apply rate-limit on each interface in your 2975
Example (for 1024kbits):

Router# conf t
Router(config)# int gig 3/24
Router(config-if)#rate-limit input 1000000 187500 375000 conform-action transmit exceed-action drop
Router(config-if)#rate-limit output 1000000 187500 375000 conform-action transmit exceed-action drop

STEP-2:

Policy a specific VLAN number on VLAN interface.

class-map vlan5
match vlan 5
match class-map class-default

policy-map vlan5-limit
class vlan5
police 8000 1500 1500 conform-action transmit exceed-action drop violate-action drop

int vlan5
service-policy input vlan5-limit


After you apply this configuration, the traffic with VLAN 5 coming from any will be policed at 8Mbps. Like that you can allocate how much bandwith you want.


Hope this will help you.


Please rate the helpfull posts.
Regards,
Naidu.

Hi Naidu,

Thanks for your email.

In the 2975 there is no exist rate-limit command :

% Unrecognized command
SW_P1R2(config-if)#rate-limit

and it's only a leyer 2 switch

Do you think that applying the service-policy to vlan will work? In the case of the answer be yes, it's a not very ussefll solution because I need to know how many interface will connect to the vlan, and I am not sure, and after I add one new interface to the vlan, it's necesary to madify the values.

Do you have any other idea that only apply to the interface?.

Thanks in advance and best regards,

Mauricio

Hi Mauricio,

Please try below may help you...

class-map IP
match ip dscp default


policy-map 1meg
class IP
police 1000000 19200 exceed-action drop


int fa0/1
service-policy input 1meg


Please rate the helpfull posts.
Regards,
Naidu.

Hi Naidu,

Thanks again for your answer, I will try these configuration.

Do you think these conf will math multicast traffic and/or any traffic.

As a  posted in my frist message the Switch don't allow to configure math any.

Thanks and best regards,

Mauricio

Review Cisco Networking products for a $25 gift card