* [LARTC] Setting up htb on 2.6.3
@ 2004-03-13 1:17 Kevin Withnall
2004-03-13 2:33 ` Corey Hickey
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Kevin Withnall @ 2004-03-13 1:17 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] Setting up htb on 2.6.3
2004-03-13 1:17 [LARTC] Setting up htb on 2.6.3 Kevin Withnall
@ 2004-03-13 2:33 ` Corey Hickey
2004-03-13 23:06 ` Corey Hickey
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Corey Hickey @ 2004-03-13 2:33 UTC (permalink / raw)
To: lartc
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 argument
Just 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/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [LARTC] Setting up htb on 2.6.3
2004-03-13 1:17 [LARTC] Setting up htb on 2.6.3 Kevin Withnall
2004-03-13 2:33 ` Corey Hickey
@ 2004-03-13 23:06 ` Corey Hickey
2004-03-13 23:39 ` Kevin Withnall
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Corey Hickey @ 2004-03-13 23:06 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 6+ messages in thread* RE: [LARTC] Setting up htb on 2.6.3
2004-03-13 1:17 [LARTC] Setting up htb on 2.6.3 Kevin Withnall
2004-03-13 2:33 ` Corey Hickey
2004-03-13 23:06 ` Corey Hickey
@ 2004-03-13 23:39 ` Kevin Withnall
2004-03-14 8:35 ` Corey Hickey
2004-03-14 21:10 ` Kevin Withnall
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Withnall @ 2004-03-13 23:39 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [LARTC] Setting up htb on 2.6.3
2004-03-13 1:17 [LARTC] Setting up htb on 2.6.3 Kevin Withnall
` (2 preceding siblings ...)
2004-03-13 23:39 ` Kevin Withnall
@ 2004-03-14 8:35 ` Corey Hickey
2004-03-14 21:10 ` Kevin Withnall
4 siblings, 0 replies; 6+ messages in thread
From: Corey Hickey @ 2004-03-14 8:35 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 6+ messages in thread* RE: [LARTC] Setting up htb on 2.6.3
2004-03-13 1:17 [LARTC] Setting up htb on 2.6.3 Kevin Withnall
` (3 preceding siblings ...)
2004-03-14 8:35 ` Corey Hickey
@ 2004-03-14 21:10 ` Kevin Withnall
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Withnall @ 2004-03-14 21:10 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-03-14 21:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-13 1:17 [LARTC] Setting up htb on 2.6.3 Kevin Withnall
2004-03-13 2:33 ` Corey Hickey
2004-03-13 23:06 ` Corey Hickey
2004-03-13 23:39 ` Kevin Withnall
2004-03-14 8:35 ` Corey Hickey
2004-03-14 21:10 ` Kevin Withnall
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.