From: "Ali Jawad" Date: Sun, 17 Dec 2006 22:57:48 +0000 Subject: [LARTC] Need help with this simple CBQ setup NEWBIE Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hi Iam using the script below to limit usage for the computers on my lan with respect to download and upload I have a 256kb up and 256 kb down connection, I want limit the speed of each computer to 64kbyte down and 32 up as a maximum. The script below works however it limits the up and down of the whole specified network to 64/32 ... what do I have to edit so that the script handles the requests on a per computer basis instead of a network as a whole. Thx for any suggestions #Download Section tc qdisc add dev eth2 root handle 11: cbq bandwidth 100Mbit avpkt \ 1000 mpu 64 tc class add dev eth2 parent 11:0 classid 11:1 cbq rate 64Kbit \ weight 6Kbit allot 1514 prio 1 avpkt 1000 bounded tc filter add dev eth2 parent 11:0 protocol ip handle 4 fw flowid 11:1 iptables -t mangle -A POSTROUTING -s ! 192.168.128.16/28 -d \ 192.168.128.16/28 -j MARK --set-mark 4 #Upload Section tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt \ 1000 mpu 64 tc class add dev eth0 parent 10:0 classid 10:1 cbq rate 30Kbit \ weight 3Kbit allot 1514 prio 1 avpkt 1000 bounded tc filter add dev eth0 parent 10:0 protocol ip handle 3 fw flowid 10:1 iptables -t mangle -A FORWARD -s 192.168.128.16/28 -j MARK --set-mark 3 -- With Regards Ali Jawad _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc