All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] why all goes to default!!
@ 2003-11-18 15:43 raptor
  2003-11-18 16:35 ` George Lefter
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: raptor @ 2003-11-18 15:43 UTC (permalink / raw)
  To: lartc

Hi,

I have config like this ,... but all traffic goes to the default class 1:4, WHY ?
What I' doing wrong... filters are attached to the root !

tc qdisc add dev eth0 handle 1:0 root htb default 4 

  tc class add dev eth0 parent 1:0 classid 1:4 htb rate 55kbit ceil 55kbit prio 7   <--default class
 
  tc class add dev eth0 parent 1:0 classid 1:1 htb rate 20Mbit
 	tc qdisc add dev eth0 handle 2:0 parent 1:1 htb

	    tc class add dev eth0 parent 2:0 classid 2:3 htb rate 30kbit ceil 30kbit
	      tc qdisc add dev eth0 handle 3:0 parent 2:3 sfq
	      tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst x.x.x.X classid 2:3

	    tc class add dev eth0 parent 2:0 classid 2:5 htb rate 30kbit ceil 30kbit
	      tc qdisc add dev eth0 handle 4:0 parent 2:5 sfq
	      tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst x.x.x.X classid 2:5
	      tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst x.x.x.X classid 2:5

...... and many like this
_______________________________________________
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] why all goes to default!!
  2003-11-18 15:43 [LARTC] why all goes to default!! raptor
@ 2003-11-18 16:35 ` George Lefter
  2003-11-18 18:34 ` Chijioke Kalu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: George Lefter @ 2003-11-18 16:35 UTC (permalink / raw)
  To: lartc

Hi,

I had a similar problem. My conclusion was that u32 match ip dst does 
not work in 2.4.22.
Do you use 2.4.22? If so, try upgrade to 2.4.23-rc1 if you can..


raptor wrote:

>Hi,
>
>I have config like this ,... but all traffic goes to the default class 1:4, WHY ?
>What I' doing wrong... filters are attached to the root !
>
>tc qdisc add dev eth0 handle 1:0 root htb default 4 
>
>  tc class add dev eth0 parent 1:0 classid 1:4 htb rate 55kbit ceil 55kbit prio 7   <--default class
> 
>  tc class add dev eth0 parent 1:0 classid 1:1 htb rate 20Mbit
> 	tc qdisc add dev eth0 handle 2:0 parent 1:1 htb
>
>	    tc class add dev eth0 parent 2:0 classid 2:3 htb rate 30kbit ceil 30kbit
>	      tc qdisc add dev eth0 handle 3:0 parent 2:3 sfq
>	      tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst x.x.x.X classid 2:3
>
>	    tc class add dev eth0 parent 2:0 classid 2:5 htb rate 30kbit ceil 30kbit
>	      tc qdisc add dev eth0 handle 4:0 parent 2:5 sfq
>	      tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst x.x.x.X classid 2:5
>	      tc filter add dev eth0 parent 1:0 protocol ip prio 2 u32 match ip dst x.x.x.X classid 2:5
>
>...... and many like this
>_______________________________________________
>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] 5+ messages in thread

* Re: [LARTC] why all goes to default!!
  2003-11-18 15:43 [LARTC] why all goes to default!! raptor
  2003-11-18 16:35 ` George Lefter
@ 2003-11-18 18:34 ` Chijioke Kalu
  2003-11-18 21:15 ` raptor
  2003-11-19  8:18 ` Cezar Atanasiu
  3 siblings, 0 replies; 5+ messages in thread
From: Chijioke Kalu @ 2003-11-18 18:34 UTC (permalink / raw)
  To: lartc

George sorry for the copy, raptor am yet to see any problem, but tell me is 
eth0 ur lan or wan, are u trying to control upload or download ?

AFAIK, if u have 2 lan cards and eth0 is wan and eth1 lan

to control download, place htb on eth1 with dst match

to control upload, place htb on eth0 with src match

K

_________________________________________________________________
From Beethoven to the Rolling Stones, your favorite music is always playing 
on MSN Radio Plus. No ads, no talk. Trial month FREE!  
http://join.msn.com/?page=offers/premiumradio

_______________________________________________
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] why all goes to default!!
  2003-11-18 15:43 [LARTC] why all goes to default!! raptor
  2003-11-18 16:35 ` George Lefter
  2003-11-18 18:34 ` Chijioke Kalu
@ 2003-11-18 21:15 ` raptor
  2003-11-19  8:18 ` Cezar Atanasiu
  3 siblings, 0 replies; 5+ messages in thread
From: raptor @ 2003-11-18 21:15 UTC (permalink / raw)
  To: lartc

yep my test kernel is 2.4.22-ck, but this also happens on other machine with 2.4.20 kernel !! i'm with gentoo..
So it has to be something into the kernel.. that is  in both of them..!?
_______________________________________________
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] why all goes to default!!
  2003-11-18 15:43 [LARTC] why all goes to default!! raptor
                   ` (2 preceding siblings ...)
  2003-11-18 21:15 ` raptor
@ 2003-11-19  8:18 ` Cezar Atanasiu
  3 siblings, 0 replies; 5+ messages in thread
From: Cezar Atanasiu @ 2003-11-19  8:18 UTC (permalink / raw)
  To: lartc


 I am using 2.4.20 with fw filters and 2.4.22 with u32 filters, had no
problem as far.

On Wed, 19 Nov 2003 00:48:18 +0200
raptor <raptor@tvskat.net> wrote:

> yep my test kernel is 2.4.22-ck, but this also happens on other
> machine with 2.4.20 kernel !! i'm with gentoo.. So it has to be
> something into the kernel.. that is  in both of
> them..!?_______________________________________________ LARTC mailing
> list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


-- 
Cezar ATANASIU
GMB Computers
Departamentul Internet
Tel/fax: +40 241 619222/673199     

_______________________________________________
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:[~2003-11-19  8:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-18 15:43 [LARTC] why all goes to default!! raptor
2003-11-18 16:35 ` George Lefter
2003-11-18 18:34 ` Chijioke Kalu
2003-11-18 21:15 ` raptor
2003-11-19  8:18 ` Cezar Atanasiu

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.