rate limiting an ethernet subinterface?

My telco is able to handle vlan tagging and dot1q encapsulation. They present their services via ethernet fibre or copper. What would be the easiest way to configure my router to limit the traffic rate on each subinterface?

Eg, my router has a 10mb copper ethernet connection to the telco and two remote sites route through. The actual barer speed is 4mb. What would be the easiest way to limit the traffic on both remotes to 2mbs each?

interface fastethernet0/1.2 encapsulation dot1q 2 ip address 192.168.101.1 255.255.255.252

interface fastethernet0/1.3 encapsulation dot1q 3 ip address 192.168.101.9 255.255.255.252

Reply to
dexx
Loading thread data ...

Depending on the type of L3 switch / router, I would use the following for a 3550:

! mls qos ! class-map match-all allip match access-group 100 ! policy-map 2mbps class allip police 2000000 32000 exceed-action drop ! int fa0/1.2 encapsulation dot1q 2 ip address 192.168.101.1 255.255.255.252 service policy input 2mpps service policy output 2mbps

int fa0/1.3 encapsulation dot1q 2 ip address 192.168.101.9 255.255.255.252 service policy input 2mpps service policy output 2mbps ! access-list 100 permit ip any any !

Goodluck!

Paul

Reply to
pg.ijpelaar

Thanks for that reply. Ive since read that using 'match ip dscp 0' in the class map also works well. Can you (or others) offer advice on choosing the 'burst bytes' value for the 'police' line? For my 2mb ethernet-delivered fibre link you've specified 32000 for the token bucket size. What is a good way of determining this?

Reply to
dexx

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.