07-02-2013 07:20 AM - edited 03-04-2019 08:21 PM
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.
07-02-2013 08:04 AM
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.
07-02-2013 08:16 AM
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
!! 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!
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: