On Thursday 03 April 2003 21:43, Alexandru Coseru wrote: > Hello.. > > I have a linux box and I want to make priority on traffic generated by my > LAN's computers.. > I don't have a guaranted bandwidth, so I wanna use sfq... > > I want to make traffic to port 80 , 443 , 25 & 110 PRIORITY 1 > > Traffic src or dest 192.168.0.2 to make priority 2 > > And the rest to put it in proiority 3.. > > > I did the following : > > tc qdisc add dev eth0 root handle 1: prio > > tc qdisc add dev eth0 parent 1:1 handle 10: sfq > tc qdisc add dev eth0 parent 1:2 handle 20: sfq > tc qdisc add dev eth0 parent 1:3 handle 30: sfq > > now , when i do : > > tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 80 > 0xffff flowid 10:1 > > I get an : RTNETLINK answers: Invalid argument > > but , if I'm typing > > tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip sport 80 > 0xffff flowid 1:1 > it's working (at least I don't have any messages..) Euh, your first command is wrong and your second not. You have to attach the filter to the root qdisc (parent 1:) and point it to a class (flowid 1:1) like you did in the first filter command. That's all. stef -- stef.coene@xxxxxxxxx "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net