class-map match-any MARKING-voice-traffic
match protocol rtp
class-map match-any MARKING-voice-signaling
match protocol sip
match protocol h323
match protocol skinny
!
policy-map MARK-TRAFFIC
class MARKING-voice-traffic
set dscp ef
class MARKING-voice-signaling
set dscp cs3
!
interface GigabitEthernet0/6
service-policy input MARK-TRAFFIC
! define a class that matches any traffic marked as EF or CS3
class-map match-any VOICE
match ip dscp ef
match ip dscp cs3
! Parent policy - limit traffic overall to 50Mbps
policy-map ELAN-OUT
class class-default
shape average 50000000
service-policy ELAN-OUT-HEADEND
! Child Policy - Give 2Mbps priority bandwidth to voice traffic, all other traffic gets a fair queue
policy-map ELAN-OUT-HEADEND
class VOICE
priority 2000
class class-default
fair-queue
random-detect dscp-based
interface GigabitEthernet0/2
description Ethernet WAN
speed 100
duplex full
service-policy output ELAN-OUT
ip access-list extended BW
permit ip any 10.167.8.0 0.0.0.255
permit ip any 10.168.8.0 0.0.0.255
permit ip any 10.6.129.0 0.0.0.255
permit ip any host 10.255.12.8
class-map match-any VOICE-BW
match ip precedence 5
match ip dscp ef
match ip precedence 3
match ip dscp cs3
match ip dscp af31
! Grandparent policy - limit the WAN interface (connected at a physical 1000Mbps), to the circuit speed of 400Mbps, then send that to the parent policy
policy-map ELAN-OUT
class class-default
shape average 400000000 account user-defined 18
service-policy ELAN-OUT-REMOTE
! Parent policy - Match traffic to a particular site (via class which matches subnets). Apply a bandwidth limit and send that to the child policy
policy-map ELAN-OUT-REMOTE
class BW
shape average 10000000
service-policy BW-ELAN-POLICY
class class-default
fair-queue
random-detect dscp-based
! Child policy - give voice traffic 2Mbps priority bandwidth, and all other traffic gets a fair queue
policy-map BW-ELAN-POLICY
class VOICE-BW
priority 2000
class class-default
fair-queue
random-detect dscp-based
interface GigabitEthernet0/0/0
service-policy output ELAN-OUT
Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.
Comments (0)