{"id":548,"date":"2010-03-26T19:15:12","date_gmt":"2010-03-26T19:15:12","guid":{"rendered":"http:\/\/mccltd.net\/blog\/?p=548"},"modified":"2010-03-26T20:41:09","modified_gmt":"2010-03-26T20:41:09","slug":"qos-policy-throttle-bandwidth-during-certain-times-in-the-day","status":"publish","type":"post","link":"http:\/\/darenmatthews.com\/blog\/?p=548","title":{"rendered":"QoS Policy &#8211; Throttle Bandwidth During Certain Times in the Day"},"content":{"rendered":"<p>Scenario:\u00a0 A servers automatic database replication causes bandwidth utilisation to increase, so we need a QoS policy to throttle the server traffic during the working day (including weekends):<!--more--><\/p>\n<p>Step 1: Create a Time Range<\/p>\n<p>Router(config)# time-range EVERY_DAY<br \/>\nRouter(config-time-range)# periodic weekdays 9:00 to 17:00<br \/>\nRouter(config-time-range)# periodic weekend 9:00 to 17:00<br \/>\nRouter(config-time-range)# exit<br \/>\nRouter(config)# ip access-list extended PROD_SERVER<br \/>\nRouter(config-ext-nacl)# permit ip host 192.168.1.50 any time-range EVERY_DAY<br \/>\nRouter(config-ext-nacl)# exit<br \/>\nRouter(config)#<\/p>\n<p>Step 2: Create a class-map (used for QoS) that matches the PROD_SERVER access-list<br \/>\nRouter(config)# class-map MATCH_PROD_SERVER<br \/>\nRouter(config-class-map)# match access-group name PROD_SERVER Router(config-class-map)# exit<br \/>\nRouter(config)#<\/p>\n<p>Step 3: Create a policy-map (used for QoS) that throttles the bandwidth.<\/p>\n<p>Router(config)# policy-map LIMIT_PROD_SERVER<br \/>\nRouter(config-pmap)# class MATCH_PROD_SERVER<\/p>\n<p>Router(config-pmap-c)# police 80000 (i.e. 80Kbps)<br \/>\nRouter(config-pmap-c)# exit<br \/>\nRouter(config-pmap)# exit<br \/>\nRouter(config)#<\/p>\n<p>Step 4: Apply the new policy to the incoming interface (the one connected to the LAN, not the Internet).<\/p>\n<p>Router(config)# interface fa0\/0<br \/>\nRouter(config-if)# service-policy input LIMIT_PROD_SERVER<\/p>\n<p>Sourced from:\u00a0 Jeremy Ciaora, <a href=\"http:\/\/www.ciscoblog.com\/\">http:\/\/www.ciscoblog.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Scenario:\u00a0 A servers automatic database replication causes bandwidth utilisation to increase, so we need a QoS policy to throttle the server traffic during the working day (including weekends):<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[83],"tags":[21],"_links":{"self":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/548"}],"collection":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=548"}],"version-history":[{"count":4,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/548\/revisions"}],"predecessor-version":[{"id":557,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/548\/revisions\/557"}],"wp:attachment":[{"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/darenmatthews.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}