Right I have used this configuration several times now so I have decided to put it up here so I have quick access to it when I need it 🙂 No point re-writing it all over every time when I can just copy/paste and tweak:

Started with an Access-List for our SIP Provider:

Extended IP access list ORBTALK
10 permit ip host 193.104.103.6 any
20 permit ip host 193.104.103.2 any
30 permit ip host 193.104.103.11 any
40 permit ip any host 193.104.103.6
50 permit ip any host 193.104.103.2
60 permit ip any host 193.104.103.1

 

Class Maps Created:
As you can see below I only created a few categories for WEBTRAFFIC, VOIP, limit traffic e.g. facebook, twitter etc and allow full speed when running a speedtest:

class-map match-any WEBTRAFFIC
description **HTTP/HTTPS TRAFFIC**
match protocol http
match protocol secure-http
class-map match-any VOXHUB-VOIP
description **VOIP Traffic for ORBTALK**
match protocol sip
match protocol rtp audio
match ip dscp ef
match ip dscp cs3
match access-group name ORBTALK
class-map match-any TRAFFIC-LIMIT
description **Traffic Limited to 10Mb**
match protocol http host “*facebook.com*”
match protocol http host “*facebook*”
match protocol http host “*twitter*”
match protocol http host “*instagram*”
class-map match-all group1
match access-group 2
class-map match-any SPEEDTEST
description **Allow Speed Test @ 100Mbps – Use: www.speedtest.bbmax.co.uk**
match protocol http host “*speedtest*”
match access-group name SPEEDTEST

 

Policy Maps:

policy-map police
class group1
police 2048000 2000 4000
policy-map POLICE
class SPEEDTEST
police rate percent 100
conform-action transmit
exceed-action drop
class VOXHUB-VOIP
police rate percent 10
conform-action transmit
exceed-action drop
class TRAFFIC-LIMIT
police rate percent 10
conform-action transmit
exceed-action drop
class WEBTRAFFIC
police rate percent 50
conform-action transmit
exceed-action drop
class class-default
police rate percent 80
conform-action transmit
exceed-action drop
policy-map SHAPE
class SPEEDTEST
shape average percent 100
class VOXHUB-VOIP
shape average percent 10
class TRAFFIC-LIMIT
shape average percent 10
class WEBTRAFFIC
shape average percent 50
class class-default
shape average percent 80

Under WAN Interface:

interface FastEthernet0/3/0
ip address 31.221.89.2 255.255.255.248
ip nbar protocol-discovery
ip nat outside
ip virtual-reassembly in
duplex auto
speed 100
crypto map Wizard
service-policy input POLICE
service-policy output SHAPE
end

Hope this helps and gives you a base to work from.

 

Leave a Reply

Your email address will not be published. Required fields are marked *