11-21-2020 08:27 AM
i would like to limit internet speed on cisco 2960x switch port.egress and ingress .upload 10mbps and download 10mbps . how to limit bandwidth on ingress.Thanks
11-21-2020 08:59 AM
You can do couple of ways :
Option 1: directly on the interface -
interface gigabitethernet0/1
speed 100MB
srr-queue bandwidth limit 30 ( *limit to 30% of interface speed = 30 Mbps - since you set the interface to 100MB.)
Option 2:
Policy MAP
ip access-list BW_30MB
permit ip any any
!
class-map match-all BW_30MB_LIMIT
match access-group BW_30MB
!
policy-map PM_30MB_LIMIT
class BW_30MB_LIMIT
police 3000000 8000 exceed-action drop
!
interface Gig1/0
service-policy output PM_30MB_LIMIT
service-policy input PM_30MB_LIMIT
Let me know how it goes after testing.
11-21-2020 10:33 AM
On egress, I recall the 2960 support both QoS egress queue shaping (don't recall if this works w/o QoS enabled) and port shaping (which will impact all traffic exiting that port.
On ingress, I recall (?) the 2960 support policing, but I also recall (??) there may be some conditions attached to using that.
That noted, you may find however limiting bandwidth from the Internet, doesn't deliver ideal results. This because the limiter will be downstream of the Internet link.
11-21-2020 08:11 PM
want to cap only internet speed.i have gigabit ports ,altering port speed effects end user to access local resources i.e within network
11-22-2020 07:51 AM
Do you have one port for Internet access (to the outside)? If so, that's where you target your policing and/or shaping efforts.
Policers (or shapers) will limit the bandwidth that passes through them. What they always don't well regulate is bandwidth usage "upstream" of them.
11-22-2020 12:03 AM
If the 2960 Switch connected to the Internet edge side, have you tried the options suggested? what was the outcome, before we jump on to another conclusion?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide