Apologies in advance if it's a stupid question, but I can't find its solution anywhere else. I am trying to shape network traffic on an interface (100Mbps) which should only permit 1.5Mbps bandwidth and has sfq filter attached to it. I have used the following tc qdiscs.
$ tc qdisc replace dev eth2 root handle 1: tbf rate 1mbit burst 8kb limit 4096kb peakrate 1.5mbit minburst 1540
$ tc qdisc add dev eth2 parent 1:1 sfq perturb 10 quantum 1514
The problem is that apparently, the bandwidth is not being reduced with the above-mentioned setup. When I have just the token bucket installed, my experiments show that the download rate is far slower than the case when these are rules are used.
What am I doing wrong? Thanks in advance.