{"id":86,"date":"2026-08-06T18:49:24","date_gmt":"2026-08-06T18:49:24","guid":{"rendered":"https:\/\/mrnetwork.nl\/index.php\/easy-traffic-shaping-in-cisco-ios\/"},"modified":"2026-08-06T20:00:05","modified_gmt":"2026-08-06T20:00:05","slug":"easy-traffic-shaping-in-cisco-ios","status":"publish","type":"page","link":"https:\/\/mrnetwork.nl\/index.php\/easy-traffic-shaping-in-cisco-ios\/","title":{"rendered":"Easy Traffic Shaping in Cisco IOS"},"content":{"rendered":"<p><a href=\"\/\" class=\"back-link\">Terug naar home<\/a><\/p>\n<h1>Easy Traffic Shaping in Cisco IOS<\/h1>\n<div class=\"paragraph\">You can enable shaping on an interface (or sub-interface) in three easy steps.  Just remember: class, policy, interface.<\/div>\n<p><\/p>\n<div class=\"headline\">Class<\/div>\n<div class=\"paragraph\">\n<div class=\"shell-wrap\">\n<p class=\"shell-top-bar\">TERMINAL<\/p>\n<ul class=\"shell-body\">\n<li>  class-map match-any CLASS_SLAP <\/li>\n<li> match any <\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"paragraph\">On the router, we have the ability to tell the class map to match any traffic.  This is in contrast to the Catalyst switch where we had to specify an access-list to match on.  This saves us a step and achieves the exact same results.  In this case, we are going to assign all traffic to the <code>CLASS_SLAP<\/code> class.<\/div>\n<p><\/p>\n<div class=\"headline\">Policy<\/div>\n<div class=\"paragraph\">\n<div class=\"shell-wrap\">\n<p class=\"shell-top-bar\">TERMINAL<\/p>\n<ul class=\"shell-body\">\n<li>  policy-map POLICY_SLAP<\/li>\n<li> class CLASS_SLAP<\/li>\n<li>  shape average 8000000<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"paragraph\">Now it&#8217;s time to define our policy map.  In this case, we&#8217;re going to take any traffic that matched the <code>CLASS_SLAP<\/code> class (which, as you remember, is <strong>all<\/strong> traffic) and apply a shaping policy to it.  We use the <code>shape average 8000000<\/code> configuration command to limit our speed (the <acronym title=\"Committed Information Rate\">CIR<\/acronym>) to 8 Mbps.  Another configuration command available for a policy map is <code>bandwidth<\/code>, which has a similar effect.  Unfortunately, a policy map utilizing the <code>bandwidth<\/code> configuration command can not be applied to a sub-interface.  This limitation may not be a problem for you, though.<\/div>\n<p><\/p>\n<div class=\"headline\">Interface<\/div>\n<div class=\"paragraph\">\n<div class=\"shell-wrap\">\n<p class=\"shell-top-bar\">TERMINAL<\/p>\n<ul class=\"shell-body\">\n<li>  interface GigabitEthernet0\/3.429<\/li>\n<li> encapsulation dot1Q 429<\/li>\n<li> service-policy output POLICY_SLAP<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"paragraph\">Finally, we need to apply the policy map to an interface using the <code>service-policy<\/code> configuration command.  In this example, I used a sub-interface to make the example a little more applicable to real word circumstances.  I&#8217;ve also applied the policy map in the outbound direction.  Thus, the users of <acronym title=\"Virtual Local Area Network\">VLAN<\/acronym> 429 are only allowed to download at an aggregate of 8 Mbps.<\/div>\n<div class=\"paragraph\">Wasn&#8217;t that easy?  How do your own experiences compare?<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Terug naar home Easy Traffic Shaping in Cisco IOS You can enable shaping on an interface (or sub-interface) in three easy steps. Just remember: class, policy, interface. Class TERMINAL class-map match-any CLASS_SLAP match any On the router, we have the ability to tell the class map to match any traffic. This is in contrast to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"blank","meta":{"footnotes":""},"class_list":["post-86","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/pages\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":6,"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/pages\/86\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/pages\/86\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/mrnetwork.nl\/index.php\/wp-json\/wp\/v2\/media?parent=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}