All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB on 2.4.20pre10 kernel
@ 2002-10-13  0:13 Ethy H. Brito
  2002-10-13  0:18 ` Marc-Christian Petersen
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ethy H. Brito @ 2002-10-13  0:13 UTC (permalink / raw)
  To: lartc


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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] HTB on 2.4.20pre10 kernel
  2002-10-13  0:13 [LARTC] HTB on 2.4.20pre10 kernel Ethy H. Brito
@ 2002-10-13  0:18 ` Marc-Christian Petersen
  2002-10-13  1:58 ` Ethy H. Brito
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Marc-Christian Petersen @ 2002-10-13  0:18 UTC (permalink / raw)
  To: lartc

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

Hi Ethy,

> (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.

-- 
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] HTB on 2.4.20pre10 kernel
  2002-10-13  0:13 [LARTC] HTB on 2.4.20pre10 kernel Ethy H. Brito
  2002-10-13  0:18 ` Marc-Christian Petersen
@ 2002-10-13  1:58 ` Ethy H. Brito
  2002-10-20  4:38 ` Joseph Watson
  2002-10-20 12:26 ` Walter Haidinger
  3 siblings, 0 replies; 5+ messages in thread
From: Ethy H. Brito @ 2002-10-13  1:58 UTC (permalink / raw)
  To: lartc

On Sun, 13 Oct 2002, Marc-Christian Petersen wrote:

> On Sunday 13 October 2002 02:13, Ethy H. Brito wrote:
>
> Hi Ethy,
>
> > (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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] HTB on 2.4.20pre10 kernel
  2002-10-13  0:13 [LARTC] HTB on 2.4.20pre10 kernel Ethy H. Brito
  2002-10-13  0:18 ` Marc-Christian Petersen
  2002-10-13  1:58 ` Ethy H. Brito
@ 2002-10-20  4:38 ` Joseph Watson
  2002-10-20 12:26 ` Walter Haidinger
  3 siblings, 0 replies; 5+ messages in thread
From: Joseph Watson @ 2002-10-20  4:38 UTC (permalink / raw)
  To: lartc

> On Sunday 13 October 2002 02:13, Ethy H. Brito wrote:
>
> 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???

-- 
Regards

Joseph Watson
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] HTB on 2.4.20pre10 kernel
  2002-10-13  0:13 [LARTC] HTB on 2.4.20pre10 kernel Ethy H. Brito
                   ` (2 preceding siblings ...)
  2002-10-20  4:38 ` Joseph Watson
@ 2002-10-20 12:26 ` Walter Haidinger
  3 siblings, 0 replies; 5+ messages in thread
From: Walter Haidinger @ 2002-10-20 12:26 UTC (permalink / raw)
  To: lartc

On Sun, 20 Oct 2002, Joseph Watson wrote:

> [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

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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-10-20 12:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-13  0:13 [LARTC] HTB on 2.4.20pre10 kernel Ethy H. Brito
2002-10-13  0:18 ` Marc-Christian Petersen
2002-10-13  1:58 ` Ethy H. Brito
2002-10-20  4:38 ` Joseph Watson
2002-10-20 12:26 ` Walter Haidinger

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.