You are not logged in.
Hello, I'm looking to give each IP in a subnet it's own max bandwidth limit. I've looked at this:
tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 10mbit
tc class add dev $DEV parent 1: classid 1:1 cbq rate 512kbit \
allot 1500 prio 5 bounded isolatedtc filter add dev $DEV parent 1: protocol ip prio 16 u32 \
match ip dst 10.8.0.1/24 flowid 1:1
The problem: Instead of each IP in the subnet getting a max of 512, 512 is split between everyone in the subnet.
Does anyone know a way to accomplish my objective?
Last edited by ernesto (2010-08-11 16:05:51)
Offline
You're sharing the 512 between the class between all the IP addresses. You'll need to create a class for each IP that you want to dedicate it's own bandwidth to.
(Yes, tc is far from elegant)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Thank you, that works, at least using 10.8.0.5 and 18.8.0.6 as a test case. Maybe I can script it.
</Grumbles>
Note: grumble directed at tc.
Last edited by ernesto (2010-08-11 16:06:35)
Offline