Im running kernel 2.6.3 with what I think is every required option turned on, yet tc gives me ... #tc qdisc add dev eth0 parent root handle 1: htb But get RTNETLINK answers: Invalid argument I really want to run htb but my tc doesn''t recognise it. Im running iproute2-2.4.7-now-ss020116-try.tar.gz (which won''t compile on 2.6.3 so I compiled on 2.4.20 and moved the binaries over. Im already using ''ip'' to do a lot of source routing and NAT stuff. Does anyone have any idea why I cannot get htb working ? Is there a current version or iproute2 or should I be using tcng ? (I hope that''s not a dirty word here :-) ) Thanks for any info I can get. Regards Kevin -- Kevin Withnall - B Comp Sci, Master CNE, MCSE ILB Computing Pty. Ltd. Phone: +61 2 42270000 Fax:+61 2 42270080 Email:kevin@withnall.com http://kevin.withnall.com -- Kevin Withnall - B Comp Sci, Master CNE, MCSE ILB Computing Pty. Ltd. Phone: +61 2 42270000 Fax:+61 2 42270080 Email:kevin@withnall.com http://kevin.withnall.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Kevin Withnall wrote:> Im running kernel 2.6.3 with what I think is every required option > turned on, yet tc gives me ... > > #tc qdisc add dev eth0 parent root handle 1: htb > But get > RTNETLINK answers: Invalid argumentJust a syntax error - the root handle has no parent. You want: tc qdisc add dev eth0 root handle 1: htb tc class add dev eth0 parent 1: classid 1:1 htb rate <something> ... -Corey _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Kevin Withnall wrote:> Still getting the same thing. Am I using the latest versions ? > > #tc qdisc add dev eth0 root handle 1: htb > RTNETLINK answers: Invalid argument > > Thanks for your time. > >I would guess that you don''t actually have your kernel properly configured to support htb. In your kernel configuration, do you have CONFIG_NET_SCH_HTB set to "y" or "m"? If it''s set to "m" you can just do a modprobe sch_htb. -Corey _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I think the kernel is fine. I received some patches and re-compiled iproute2 on 2.4.20, moved the binaries to 2.6.3 and it works more.. Heres what happens now. #./qd + tc qdisc del dev eth0 root + tc qdisc del dev eth0 ingress + tc qdisc add dev eth0 root handle 1: htb + tc class add dev eth1 parent 1: classid 1:1 htb rate 6mbit burst 15k RTNETLINK answers: No such file or directory The qdisc command works but the class one doesn''t. Any ideas ? Thanks -- Kevin Withnall - B Comp Sci, Master CNE, MCSE ILB Computing Pty. Ltd. Phone: +61 2 42270000 Fax:+61 2 42270080 Email:kevin@withnall.com http://kevin.withnall.com> -----Original Message----- > From: lartc-admin@mailman.ds9a.nl > [mailto:lartc-admin@mailman.ds9a.nl] On Behalf Of Corey Hickey > Sent: Sunday, 14 March 2004 10:07 AM > To: lartc@mailman.ds9a.nl > Subject: Re: [LARTC] Setting up htb on 2.6.3 > > Kevin Withnall wrote: > > Still getting the same thing. Am I using the latest versions ? > > > > #tc qdisc add dev eth0 root handle 1: htb > > RTNETLINK answers: Invalid argument > > > > Thanks for your time. > > > > > > I would guess that you don''t actually have your kernel properly > configured to support htb. In your kernel configuration, do you have > CONFIG_NET_SCH_HTB set to "y" or "m"? If it''s set to "m" you > can just do > a modprobe sch_htb. > > -Corey > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Kevin Withnall wrote:> I think the kernel is fine. I received some patches and re-compiled > iproute2 on 2.4.20, moved the binaries to 2.6.3 and it works more.. > > Heres what happens now. > > #./qd > + tc qdisc del dev eth0 root > + tc qdisc del dev eth0 ingress > + tc qdisc add dev eth0 root handle 1: htb > + tc class add dev eth1 parent 1: classid 1:1 htb rate 6mbit burst 15k > RTNETLINK answers: No such file or directory > > The qdisc command works but the class one doesn''t. Any ideas ? > > Thanks >That''s because you switched from eth0 to eth1, in your last command. If you want to assign an htb class to eth1, you have to first assign it an htb qdisc: tc qdisc add dev eth1 root handle 1: htb tc class add dev eth1 parent 1: classid 1:1 htb rate 6mbit burst 15k -Corey _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
DOH! Thanks for that, It was a cut-and-paste error.... I swear I read that thing 100 times and didn''t see it... Thanks again. Regards Kevin -- Kevin Withnall - B Comp Sci, Master CNE, MCSE ILB Computing Pty. Ltd. Phone: +61 2 42270000 Fax:+61 2 42270080 Email:kevin@withnall.com http://kevin.withnall.com> -----Original Message----- > From: lartc-admin@mailman.ds9a.nl > [mailto:lartc-admin@mailman.ds9a.nl] On Behalf Of Corey Hickey > Sent: Sunday, 14 March 2004 7:35 PM > To: lartc@mailman.ds9a.nl > Subject: Re: [LARTC] Setting up htb on 2.6.3 > > Kevin Withnall wrote: > > I think the kernel is fine. I received some patches and re-compiled > > iproute2 on 2.4.20, moved the binaries to 2.6.3 and it works more.. > > > > Heres what happens now. > > > > #./qd > > + tc qdisc del dev eth0 root > > + tc qdisc del dev eth0 ingress > > + tc qdisc add dev eth0 root handle 1: htb > > + tc class add dev eth1 parent 1: classid 1:1 htb rate > 6mbit burst 15k > > RTNETLINK answers: No such file or directory > > > > The qdisc command works but the class one doesn''t. Any ideas ? > > > > Thanks > > > > That''s because you switched from eth0 to eth1, in your last > command. If > you want to assign an htb class to eth1, you have to first > assign it an > htb qdisc: > > tc qdisc add dev eth1 root handle 1: htb > tc class add dev eth1 parent 1: classid 1:1 htb rate 6mbit burst 15k > > -Corey > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/