In order to limit some of the computers from hogging the internet connection, i've tried using htb, and then cbq in order to limit some of them. neither cbq nor htb seem to do anything at all however.
here are my 2 scripts (only one is run at a time of course)
Code:
#!/bin/sh
tc qdisc add dev eth1 root handle 1: htb default 100
tc class add dev eth1 parent 1: classid 1:1 htb rate 256kbps ceil 256kbps
tc class add dev eth1 parent 1:1 classid 1:10 htb rate 120kbps ceil 256kbps prio 1 #maya
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 90kbps ceil 256kbps prio 0 #sat
tc class add dev eth1 parent 1:1 classid 1:30 htb rate 80kbps ceil 256kbps prio 2 #kapi
tc class add dev eth1 parent 1:1 classid 1:40 htb rate 30kbps ceil 256kbps prio 2 #xp1400
tc class add dev eth1 parent 1:1 classid 1:50 htb rate 80kbps ceil 256kbps burst 5k
tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth1 parent 1:20 handle 20: sfq perturb 10
tc qdisc add dev eth1 parent 1:30 handle 30: sfq perturb 10
tc qdisc add dev eth1 parent 1:40 handle 40: sfq perturb 10
tc qdisc add dev eth1 parent 1:50 handle 50: sfq perturb 10
U32="tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32"
U33="tc filter add dev eth1 parent 1:0 protocol ip prio 2 u32"
$U32 match ip src 192.168.0.1 flowid 1:10
$U32 match ip src 192.168.0.2 flowid 1:20
$U33 match ip src 192.168.0.7 flowid 1:30
$U33 match ip src 192.168.0.6 flowid 1:40
$U32 match ip dst 192.168.0.1 flowid 1:10
$U32 match ip dst 192.168.0.2 flowid 1:20
$U33 match ip dst 192.168.0.7 flowid 1:30
$U33 match ip dst 192.168.0.6 flowid 1:40
tc qdisc show
Code:
#!/bin/sh
tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 256Kbit avpkt 1000 cell 8
tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 256Kbit rate 256Kbit weight 25Kbit prio 8 allot 1514 cell 8 maxburst 10 avpkt 1000 bounded
tc class add dev eth1 parent 1:1 classid 1:10 cbq bandwidth 256Kbit rate 120Kbit weight 12Kbit prio 5 allot 1514 cell 8 maxburst 10 avpkt 1000
tc class add dev eth1 parent 1:1 classid 1:20 cbq bandwidth 256Kbit rate 90Kbit weight 9Kbit prio 5 allot 1514 cell 8 maxburst 10 avpkt 1000
tc class add dev eth1 parent 1:1 classid 1:30 cbq bandwidth 256Kbit rate 80Kbit weight 8Kbit prio 5 allot 1514 cell 8 maxburst 5 avpkt 1000
tc class add dev eth1 parent 1:1 classid 1:40 cbq bandwidth 256Kbit rate 60Kbit weight 6Kbit prio 5 allot 1514 cell 8 maxburst 3 avpkt 1000
tc qdisc add dev eth1 parent 1:10 handle 100: sfq
tc qdisc add dev eth1 parent 1:20 handle 200: sfq
tc qdisc add dev eth1 parent 1:30 handle 300: sfq
tc qdisc add dev eth1 parent 1:40 handle 400: sfq
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.1 flowid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.2 flowid 1:20
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.7 flowid 1:30
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.6 flowid 1:40
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.1 flowid 1:10
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.2 flowid 1:20
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.7 flowid 1:30
tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.0.6 flowid 1:40
tc qdisc show
neither displays any errors, and tc qdisc show displays exactly what it is supposed to display, however, computers 192.168.0.6 and 7 are still getting the most bandwidth, sometimes even all of it, even though i have tried giving them the least. they are also windows computers, if that helps any.
can anyone please tell me WHY nothing works

!