Bandwidth Limiting / Shaping on Cisco Switch or Router Port.

By | November 18, 2022

When Internet Service Providers (ISP) gives a new internet link , very often they have shaping rules on their router to regulate internet traffic at promised rate. If your firewall/router/switch is sending more excessive traffic than promised rate, the packet will be dropped by ISP router, then ends up with suboptimal performance and slow internet speed.

in this method, you can shape the customer’s download speed but not the upload speed.

The below example is to rate-limit outbound traffic at 12Mbps

policy-map Shaping
class class-default
shape average 12m

interface te2/1/4
description ISP_link
switchport mode access
switchport access vlan 4
service-policy output Shaping

ISP-Distribution-Core-Vpnv4#show policy-map interface


Note:=You cant apply the service policy on interface vlan .

(config)#interface vlan 17
DISTRIBUTION-SW-NGC(config-if)#service-policy output 12m
%Configuring service-policies on SVI interfaces is not allowed. Instead configure service-policy in vlan configuration mode via the command 'vlan config <vlan number>'

Leave a Reply

Your email address will not be published.