Skip to contentSkip to conversation

HTB on 2.4.20pre10 kernel

LARTC Ethy H. Brito 4 participants 5 messages Oct 13, 2002 – Oct 20, 2002

lore
Share & tools
lore
#0 lore raw

Dear Gurus

I am trying HTB (first time) and this floated:

# tchtb qdisc add dev eth0 root handle 1: htb default 12
RTNETLINK answers: Invalid argument
#

(tchtb is the tc program I downloaded from HTB home page - I renamed it so I can have both tc's - currently I use iproute2-2.4.7-now-ss020116-try - don't know if it already supports HTB)

But this works like a charm:

# tchtb qdisc add dev eth0 root handle 1: cbq  bandwidth 10Mbit avpkt 1000
# (No erros or warnings!)
# uname -a
Linux inte 2.4.20-pre10 #6 Sat Oct 12 20:51:34 BRT 2002 i586 unknown
# grep HTB /usr/src/linux/.config
CONFIG_NET_SCH_HTB=y

.config says: (I set all QoS to Y - no modules)
#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_CBQ=y
CONFIG_NET_SCH_HTB=y
CONFIG_NET_SCH_CSZ=y
CONFIG_NET_SCH_PRIO=y
CONFIG_NET_SCH_RED=y
CONFIG_NET_SCH_SFQ=y
CONFIG_NET_SCH_TEQL=y
CONFIG_NET_SCH_TBF=y

There is no CONFIG_NETLINK option to set running menuconfig

Any soul to the rescue?

Regards

Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3941-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil / \

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

#1 lore raw

On Sunday 13 October 2002 02:13, Ethy H. Brito wrote:

Hi Ethy,

Quoted 3 lines

(tchtb is the tc program I downloaded from HTB home page - I renamed it so I can have both tc's - currently I use iproute2-2.4.7-now-ss020116-try - don't know if it already supports HTB)

wrong.

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

and use the tc binary in it.

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 Ethy H. Brito
Quoted 4 lines · Marc-Christian Petersen

On Sunday 13 October 2002 02:13, Ethy H. Brito wrote:

Hi Ethy,

Quoted 8 lines
Quoted 3 lines

(tchtb is the tc program I downloaded from HTB home page - I renamed it so I can have both tc's - currently I use iproute2-2.4.7-now-ss020116-try - don't know if it already supports HTB)

wrong.

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

and use the tc binary in it.

Worked like a charm. Thank you

Regards

Ethy H. Brito /"\
InterNexo Ltda. \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3941-6860 X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil / \

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

#3 lore raw
In reply to Ethy H. Brito
Quoted 5 lines · Ethy H. Brito

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

and use the tc binary in it.

Hello,

I am trying to get htb working on a Mandrake 8.2 machine. The tc that comes with the distro doesn't work, so I downloaded the above and tried it, but it also didn't work. here is some info about my system.

[root@dw jtwatson]# cat /boot/config | grep HTB CONFIG_NET_SCH_HTB=m
[root@dw jtwatson]# uname -a
Linux 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i586 unknown [root@dwwireless jtwatson]# lsmod
Module Size Used by Not tainted
sch_htb 12960 0 (autoclean) (unused)
.....

All looks good to me, I have the new tc binary in the current directory, and issue the following command:

[root@dw jtwatson]# ./tc qdisc add dev eth1 root handle 1: htb default 12 RTNETLINK answers: Invalid argument

I tried the very same thing on a Mandrake 9.0 machine and it worked great.

Any suggestions would be great!!

I am trying to accomplish the following:

tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 1500kbps ceil 1500kbps tc class add dev eth0 parent 1:1 classid 1:10 htb rate 256kbps ceil 256kbps tc class add dev eth0 parent 1:1 classid 1:11 htb rate 256kbps ceil 256kbps tc class add dev eth0 parent 1:1 classid 1:12 htb rate 256kbps ceil 256kbps
...

tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
match ip src 1.2.3.4 flowid 1:10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
match ip src 1.2.3.5 flowid 1:11
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 \
match ip src 1.2.3.6 flowid 1:12
...

Can this be done with another qdisc???

Signature · 6 lines
Regards

Joseph Watson
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#4 lore raw
In reply to Ethy H. Brito
Quoted 7 lines · Joseph Watson

[root@dw jtwatson]# uname -a
Linux 2.4.18-6mdk #1 Fri Mar 15 02:59:08 CET 2002 i586 unknown [root@dwwireless jtwatson]# lsmod
Module Size Used by Not tainted
sch_htb 12960 0 (autoclean) (unused)
.....

Quoted 5 lines

All looks good to me, I have the new tc binary in the current directory, and issue the following command:

[root@dw jtwatson]# ./tc qdisc add dev eth1 root handle 1: htb default 12 RTNETLINK answers: Invalid argument

From "Changes" on the HTB homepage:
* 15.8.2002
o HTB included in 2.4.20pre1 and next 2.5.x patch.

You're using kernel 2.4.18. Perhaps it does not include the HTB v3.6 patch, only HTB2. Then the kernel module would not understand the "new" HTB3 tc commands.

Check your kernel syslog messages! 2.4.20pre10 gives me the following:
kernel: HTB init,kernel part version 3.7

Walter

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