I want to setup bandwidth limiting with working limit-ats, not wasting usable bandwidth etc, but it never works for me as expected. I have read the articles at the wiki, pcq, htb examples etc, but I just can't get it working. I use mangle and queue trees to set bandwidth for ips or ranges, it works like a charm, but this setup is wasting a lot of unused bandwidth. I think the problem may be related to parent queues setting, or limiting only the outgoing interface etc.
The goal: lets have 200mb line on eth1-gateway, and I want to split it to 100mb for eth2 and 100mb for eth3. A can do that now, but when there is no traffic on eth2, eth3 is still limited to 100mb and 100mb of eth2 is wasted. I want eth3 do download 200mbit with eth2 off, but when eth2 gets on and wants do download as much as possible, it should get its 100mb. Or, if eth2 is downloading from a slow 30mbit server, eth3 should get 170mb, etc.
I tried to set limit-at for eth2 and eth3 to 100mb, set parent max-limit to 200mb, priorities etc, but I never got it working. Can anyone please post a real working example? I don't really know what I'm doing wrong.
And to be even more tricky, lets say that eth2 is /24 production network, with a pc in meetingroom. For the meeting, I want to guarantee 60mb only for that one ip - but again, I don't want to cut down the speed of the production network to 40mb forever, I want it this way only when the meetingroom pc is being used.