[nsp] Example code of how to "rate limit" a port on a 3550

Matthew Crocker matthew at crocker.com
Fri Jul 2 10:37:45 EDT 2004



My new config which appears to be working for inbound (customer to me, 
customer to Internet) and outbound (me to customer, Internet to 
customer) uses dscp on both ingress and egress.

class-map match-any everything
	match ip dscp 0

policy-map 1mbps
    class everything
      police 1000000 8000 exceed-action drop


int f0/5
   service-policy input 1mbps
   service-policy output 1mbps

I'll beat on the server a bit to test it out some more.

3550-48# show mls qos interface f0/5
FastEthernet0/5
Attached policy-map for Ingress: 1mbps
trust state: not trusted
trust mode: not trusted
COS override: dis
Attached policy-map for Egress: 1mbps
default COS: 0
DSCP Mutation Map: Default DSCP Mutation Map
trust device: none

3550-48# show mls qos interface f0/5 statistics
FastEthernet0/5
Ingress
   dscp: incoming   no_change  classified policed    dropped (in bytes)
Others: 38984265   38123202   861063     0          1252177044
Egress
   dscp: incoming   no_change  classified policed    dropped (in bytes)
Others: 2227787239    n/a       n/a      0          0



More information about the cisco-nsp mailing list