- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-12-2012 10:46 AM
Here it is:
class-map match-any AF4x
match ip dscp af41
class-map match-any AF3x
match ip dscp af31
class-map match-any AF2x
match ip dscp af21
class-map match-any Voice
match ip dscp ef
class-map match-any Scavenger
match ip dscp cs1
class-map match-any AFclass
match ip dscp af21 af31 af41
!
!
policy-map AFsubclass
class AF4x
police rate percent 20
exceed-action set-dscp-transmit af42
class AF3x
police rate percent 5
exceed-action set-dscp-transmit af32
class AF2x
police rate percent 5
exceed-action set-dscp-transmit af22
policy-map STDqos
class Voice
priority percent 10
class AFclass
bandwidth percent 25
service-policy AFsubclass
class Scavenger
police rate percent 5
exceed-action set-dscp-transmit default
violate-action drop
class class-default
bandwidth percent 50
random-detect dscp-based
!
policy-map Shape10Mb
class class-default
shape average 10000000
service-policy STDqos
! class-map match-any AF4x
match ip dscp af41
class-map match-any AF3x
match ip dscp af31
class-map match-any AF2x
match ip dscp af21
class-map match-any Voice
match ip dscp ef
class-map match-any Scavenger
match ip dscp cs1
class-map match-any AFclass
match ip dscp af21 af31 af41
!
!
policy-map AFsubclass
class AF4x
police rate percent 20
exceed-action set-dscp-transmit af42
class AF3x
police rate percent 5
exceed-action set-dscp-transmit af32
class AF2x
police rate percent 5
exceed-action set-dscp-transmit af22
policy-map STDqos
class Voice
priority percent 10
class AFclass
bandwidth percent 25
service-policy AFsubclass
class Scavenger
police rate percent 5
exceed-action set-dscp-transmit default
violate-action drop
class class-default
bandwidth percent 50
random-detect dscp-based
!
policy-map Shape10Mb
class class-default
shape average 10000000
service-policy STDqos
!
This example uses a lot of features to play with. It does for example remarking and shaping.
Take out what you can use.
Leo