×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Class-map Pass All Traffic

Unanswered Question
Jul 2nd, 2013
User Badges:

I new to QoS and want to create a class-map/policy-map to pass all traffic through an interface at 50%.   Not sure how to configure the class-map.  Here is what I have so far:


!

class-map match-all 1000mbps-class

!

!

policy-map 1000mbps-policy

class 1000mbps-class

  police 500000000 8000 exceed-action drop

!

!

interface Gi0/1

service-policy output 1000mbps-policy

!

!


Any help would be appreciated.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joseph W. Doherty Tue, 07/02/2013 - 08:04
User Badges:
  • Super Bronze, 10000 points or more

Disclaimer


The   Author of this posting offers the information contained within this   posting without consideration and with the reader's understanding that   there's no implied or expressed suitability or fitness for any purpose.   Information provided is for informational purposes only and should not   be construed as rendering professional advice of any kind. Usage of  this  posting's information is solely at reader's own risk.


Liability Disclaimer


In   no event shall Author be liable for any damages whatsoever (including,   without limitation, damages for loss of use, data or profit) arising  out  of the use or inability to use the posting's information even if  Author  has been advised of the possibility of such damage.


Posting


You're on the right track.


If you really want to match all traffic, just use class-default.  That way you don't need to define an explicit class.


BTW, some of the newer IOS's support percentages for the policer/shaper - a little easier to maintain.


Also, you might want to shape rather than police.

Eloy Pascal Tue, 07/02/2013 - 08:16
User Badges:

You may want to use a shaper instead of a policer. The difference is that a policer will drop exceeding traffic while the shaper will not (it will shape the traffic to the BW you set).



Example (if using ISR router):



policy-map SHAPER

  class class-default

  shape average

      service-policy !! -> this is optional, in case you have a CBWFQ/LLQ policy, leave out if you don't



!! Apply to the interface, example using a P2P link



interface HSSIx/x/x (HDLC, POS etc.)

  service-policy output SHAPER

  hold-queue 4096 out



Hope this helps!

Actions

This Discussion