Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Class-map Pass All Traffic

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
Super Bronze

Re: Class-map Pass All Traffic

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.

New Member

Re: Class-map Pass All Traffic

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!

108
Views
0
Helpful
2
Replies
CreatePlease to create content