Friday, September 13, 2019

Rate limiting a port

Hi Reddit,

As an MSP, we have a customer who we've sold a 100mpbs pipe at our Colo. They are connected to an interface on our switch that currently has a policing policy applied that doesn't appear to be working, the policy is configured as such:

ip access-list extended ANY_IP

permit ip any any

class-map match-all ANY

match access-group name ANY_IP

!

policy-map Policer_100M

description 100Megs Bandwidth

class ANY

police 100000000 8000 exceed-action drop

interface GigabitEthernet1/0/5

description Customer

switchport access vlan 9

ip access-group ANY_IP in

spanning-tree portfast

service-policy input Policer_100M

When I look at the policy stats I have nothing:

Service-policy input: Policer_100M

Class-map: ANY (match-all)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: access-group name ANY_IP

Class-map: class-default (match-any)

0 packets, 0 bytes

5 minute offered rate 0 bps, drop rate 0 bps

Match: any

0 packets, 0 bytes

5 minute rate 0 bps

From research I've done I think it would be better to accomplish this using the srr-queue bandwidth limit command. Thoughts?

Edit: Network device in question is a Cisco 3750G running IP Services 15.2



No comments:

Post a Comment