cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
428
Views
0
Helpful
1
Replies

Limiting bandwidth on a switch interface

tyler.perkey
Level 1
Level 1

Hi all,

 

I work for an MSP and we have some customers in our DC that we sell bandwidth too.  We have a 1GB pipe coming into our outside switch and a customer in port 3 that we need to restrict to 300mpbs up/down.  Our outside switch is a 3750G, we are trying to determine the best way to accomplish this task.  Right now we have a policer policy on the input of the port, this config works in our lab, but we don't see any stats in the lab switch or in production switch.  Below is our config:

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

1 Reply 1

Joseph W. Doherty
Hall of Fame
Hall of Fame
Your policy is likely working as intended, but 3750Gs, especially if running older IOS versions, don't always reflect stats in the higher level commands. When they don't, you can sometimes see the stats in the lower level hardware commands.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card