cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
395
Views
0
Helpful
2
Replies

Class-map Pass All Traffic

dtom
Level 1
Level 1

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.

2 Replies 2

Joseph W. Doherty
Hall of Fame
Hall of Fame

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
Level 1
Level 1

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!

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: