From: Huan Pham (huan.pham@valuenet.com.au)
Date: Sun Nov 25 2007 - 19:44:15 ART
Hi Group,
 
I would like to rate limit traffic in and out of an interface on C3560. 
 
The rate-limiting on incoming traffic is working fine using interface
command:
 
interface fa0/2
 srr-queue bandwidth limit 20
 
(BTW, service-policy can not be applied to outgoing direction of an
interface).
 
However, rate limiting on outgoing traffic using policy map does not seem to
work. Under policy-map configuration, I tried both class-default, as well as
the one I manually created (Class ALL), but none seems to work. When I do
extended ping from R2 to R4, I still see traffic reaching about 4Mbps
although the C3560 meant to shape traffic at 2M. 
 
Would you pls see if there's any error in my config, or any better ideas
doing rate-limiting on C3560.
 
Thanks,
 
 
 
 
R2 ----- SW2 ----- R4
 
 
SW2#
 
SW2#sh ver | in Ver
Cisco IOS Software, C3560 Software (C3560-ADVIPSERVICESK9-M), Version
12.2(40)SE, RELEASE SOFTWARE (fc3)
BOOTLDR: C3560 Boot Loader (C3560-HBOOT-M) Version 12.2(35r)SE2, RELEASE
SOFTWARE (fc1)
Version ID                      : V01
Switch   Ports  Model              SW Version              SW Image    
 
SW2#
ip access-list extended all
 permit ip any any
 
class-map match-all ALL
  match access-group name all
!
policy-map POLICE_2M
  class ALL
    police 2048000 25600 exceed-action drop
 
 
interface FastEthernet0/2
 desc Connect to R2 FE0/0
 service-policy input POLICE_2M
 
interface FastEthernet0/4
 desc Connect to R4 FE0/0
 
R2#
interface FastEthernet0/0
 desc Connect to SW2 FE0/2
 ip address 10.0.0.2 255.0.0.0
 
ping ip 10.0.0.4 size 1500 timeout 0 rep 10000
 
R4#
interface FastEthernet0/0
 desc Connect to SW2 FE0/4
 ip address 10.0.0.4 255.0.0.0
 
R4#sh int fa0/0 | in rate 
  30 second input rate 3469000 bits/sec, 286 packets/sec
  30 second output rate 3469000 bits/sec, 286 packets/sec
 
 
 
Cheers,
 
Huan Pham
This archive was generated by hypermail 2.1.4 : Sat Dec 01 2007 - 06:37:31 ART