Skip to contentSkip to conversation

Kernel config for HTB

LARTC Benjamin Goedeke 4 participants 5 messages Nov 22, 2002 – Nov 23, 2002

lore
Share & tools
lore
#0 lore raw

Hello all,

Reading through the list I realize that most of what you people talk about is way over my head... But I'm trying. I'm new to all this traffic shaping thing and I'm stuck at the very beginning: I'm trying to configure my kernel so I can set up a HTB on my ppp0 interface.

I'm running Debian sarge and have iproute2 installed (2.4.7). I downloaded kernel 2.4.20-rc2 which includes the HTB code. Now I gathered that I need to enable CONFIG_NETLINK and CONFIG_RTNETLINK among other options. However, for the life of mine I can't find these options. Even when I grep through the .config file they don't show up. I see CONFIG_NETLINK_DEV but that's it. And when I want to set up a qdisc on ppp0, for instance

tc qdisc add dev ppp0 root handle 1:0 htb default 5

all I get is

HTB init, kernel part version 3.7
HTB: need tc/htb version 3 (minor is 7), you have 10 "RTNETLINK answers: Invalid argument"

Can anyone please point me to the relevant section in menuconfig to enable the CONFIG_*NETLINK options

Thanks,
Ben

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

On Friday 22 November 2002 18:00, Benjamin Goedeke wrote:

Hi Benjamin,

Quoted 5 lines

tc qdisc add dev ppp0 root handle 1:0 htb default 5 all I get is
HTB init, kernel part version 3.7
HTB: need tc/htb version 3 (minor is 7), you have 10 "RTNETLINK answers: Invalid argument"

wrong tc version :)

Quoted 2 lines

Can anyone please point me to the relevant section in menuconfig to enable the CONFIG_*NETLINK options

CONFIG_NETLINK does not exist anylonger on any 2.4 kernel. 2.2 have this config option.

Download this: http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz

extract it, you'll see a "tc" binary. Do a "mv ./tc /sbin" and try the above again and you'll see that it works :) ... That binary has the needed patches for tc already applied to use HTB.

have fun :)

Signature · 11 lines
Kind regards
        Marc-Christian Petersen

http://sourceforge.net/projects/wolk

PGP/GnuPG Key: 1024D/569DE2E3DB441A16
Fingerprint: 3469 0CF8 CA7E 0042 7824 080A 569D E2E3 DB44 1A16
Key available at www.keyserver.net. Encrypted e-mail preferred.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Benjamin Goedeke
Quoted 7 lines · Benjamin Goedeke

Hello all,

Reading through the list I realize that most of what you people talk about is way over my head... But I'm trying. I'm new to all this traffic shaping thing and I'm stuck at the very beginning: I'm trying to configure my kernel so I can set up a HTB on my ppp0 interface.

Quoted 7 lines

I'm running Debian sarge and have iproute2 installed (2.4.7). I downloaded kernel 2.4.20-rc2 which includes the HTB code. Now I gathered that I need to enable CONFIG_NETLINK and CONFIG_RTNETLINK among other options. However, for the life of mine I can't find these options. Even when I grep through the .config file they don't show up. I see CONFIG_NETLINK_DEV but that's it. And when I want to set up a qdisc on ppp0, for instance

You need to enable CONFIG_NETLINK_DEV option. And all the options under "QoS and/or fair queueing" menu.

Quoted 7 lines

tc qdisc add dev ppp0 root handle 1:0 htb default 5

all I get is

HTB init, kernel part version 3.7
HTB: need tc/htb version 3 (minor is 7), you have 10 "RTNETLINK answers: Invalid argument"

Have you patched tc so you have htb support? I don't know if the tc command that comes with debian has htb support.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Benjamin Goedeke
Quoted 5 lines · Marc-Christian Petersen

Download this: http://luxik.cdi.cz/~devik/qos/htb/v3/htb3.6-020525.tgz

extract it, you'll see a "tc" binary. Do a "mv ./tc /sbin" and try the above again and you'll see that it works :) ... That binary has the needed patches for tc already applied to use HTB.

Yes, it works indeed.

Quoted 3 lines

have fun :)

I will.

Thanks a bunch,
Ben

Signature · 9 lines
Your fortune cookie for today:

BOFH excuse #271:

The kernel license has expired

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Benjamin Goedeke
Quoted 2 lines · Stef Coene

Have you patched tc so you have htb support? I don't know if the tc command that comes with debian has htb support.

The tc command that comes with debian woody (the current stable distribution) has htb support, but unfortunately it is for the old htb version.

It seems unlikely that this will change soon (new version are normally not introduced in stable).

This has allready been reported:
http://bugs.debian.org/167149

The unstable distribution could include an updated version in the near future (but as far as I can tell, this isn't the case yet).

Greetings,

Ivo De Decker

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/