cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3462
Views
6
Helpful
5
Replies

Catalyst 3560 rate-limit question

forumhealth
Level 1
Level 1

I am trying to configure rate-limiting on a 3560 switch (12.2.25SE, ipservices), but it does not seem to have any effect.

Basic configuration is:

interface FastEthernet0/24
no switchport
ip address 10.163.37.254 255.255.254.0
rate-limit output 10000000 5000 5000 conform-action transmit exceed-action drop

interface Vlan1
ip address 192.168.250.1 255.255.255.0
rate-limit output 10000000 5000 5000 conform-action transmit exceed-action drop

I want to limit the output to 10Mbps.  I did not know whether to configure rate-limiting on the router port or the vlan interface.  I set the burst rate very low to try to force the router to drop packets while I was testing.  The output of the "show interface rate" command is:

Switch#sh int f0/24 rate
FastEthernet0/24
  Output
    matches: all traffic
      params:  10000000 bps, 5000 limit, 5000 extended limit
      conformed 0 packets, 0 bytes; action: transmit
      exceeded 0 packets, 0 bytes; action: drop
      last packet: 4008815ms ago, current burst: 0 bytes
      last cleared 00:15:30 ago, conformed 0 bps, exceeded 0 bps

Switch#sh int vlan 1 rate
Vlan1
  Output
    matches: all traffic
      params:  10000000 bps, 5000 limit, 5000 extended limit
      conformed 0 packets, 0 bytes; action: transmit
      exceeded 0 packets, 0 bytes; action: drop
      last packet: 4031623ms ago, current burst: 0 bytes
      last cleared 00:07:21 ago, conformed 0 bps, exceeded 0 bps

Actual throughput on a large file transfer was >70Mbps.  What am I missing, or can't I do this on a 3560?

Thanks,

Al Stiver

5 Replies 5

gatlin007
Level 4
Level 4

That show command looks like it may be unsupported:

Unsupported Privileged EXEC Commands

show interfaces [interface-id | vlan vlan-id] [crb | fair-queue | irb | mac-accounting | precedence | irb | random-detect | rate-limit | shape]

http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_sea/configuration/guide/swuncli.html

deyadav
Cisco Employee
Cisco Employee

You may instead try using service-policy on the interface to rate-limit the traffic.This would be done by using Class-based Policing:

http://www.cisco.com/en/US/partner/docs/switches/lan/catalyst3560/software/release/12.2_25_se/configuration/guide/swqos.html#wp1044737

HTH.

Regards,

Deepak

andtoth
Level 4
Level 4

Hi,

The rate-limit command is not supported (although available) on the 3560/3750 series switches. You can apply outbound (egress) policy-map on physical interfaces and do srr-queue on inbound. If you want to limit bandwidth for a whole vlan, you can apply the policy-map on the Vlan interface and enable vlan based qos on the physical interfaces.

Refer to the QoS Configuration Guide on the following link:

http://www.cisco.com/en/US/partner/docs/switches/lan/catalyst3560/software/release/12.2_25_se/configuration/guide/swqos.html#wp1044737

Andras

jared1995
Level 1
Level 1

Edited Comment

The bandwidth interface configuration command will not do bandwidth limiting on Vlan interfaces as it's supposed to set and communicate the current bandwidth value for an interface to higher-level protocols. It's mostly used for Serial interfaces.

Review Cisco Networking for a $25 gift card