Re: HTB on 2.4.20pre10 kernel

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux