All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc problem
@ 2003-04-03 19:43 Alexandru Coseru
  2003-04-03 20:12 ` Stef Coene
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alexandru Coseru @ 2003-04-03 19:43 UTC (permalink / raw)
  To: lartc

Hello..

I have a linux box and I want to make priority on traffic generated by my
LAN's computers..
I don't have a guaranted bandwidth, so I wanna use sfq...

I want to make traffic to port 80 , 443 , 25 & 110  PRIORITY 1

Traffic src or dest 192.168.0.2  to make priority 2

And the rest to put it in proiority 3..


I did the following :

tc qdisc add dev eth0 root handle 1: prio

 tc qdisc add dev eth0 parent 1:1 handle 10: sfq
 tc qdisc add dev eth0 parent 1:2 handle 20: sfq
 tc qdisc add dev eth0 parent 1:3 handle 30: sfq

now , when i do :

tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 80
0xffff flowid 10:1

I get an : RTNETLINK answers: Invalid argument

but , if I'm typing

tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip sport 80
0xffff flowid 1:1
it's working (at least I don't have any messages..)


I've compiled the kernel , and all options were selected "in kernel" , not
as modules...  (iptables , cbq , sfq , etc..)


                                    Thanks

                                    AlexCOS
                                www.alexcos.home.ro


_______________________________________________
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] tc problem
  2003-04-03 19:43 [LARTC] tc problem Alexandru Coseru
@ 2003-04-03 20:12 ` Stef Coene
  2003-05-02 12:20 ` Alexandru Coseru
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-04-03 20:12 UTC (permalink / raw)
  To: lartc

On Thursday 03 April 2003 21:43, Alexandru Coseru wrote:
> Hello..
>
> I have a linux box and I want to make priority on traffic generated by my
> LAN's computers..
> I don't have a guaranted bandwidth, so I wanna use sfq...
>
> I want to make traffic to port 80 , 443 , 25 & 110  PRIORITY 1
>
> Traffic src or dest 192.168.0.2  to make priority 2
>
> And the rest to put it in proiority 3..
>
>
> I did the following :
>
> tc qdisc add dev eth0 root handle 1: prio
>
>  tc qdisc add dev eth0 parent 1:1 handle 10: sfq
>  tc qdisc add dev eth0 parent 1:2 handle 20: sfq
>  tc qdisc add dev eth0 parent 1:3 handle 30: sfq
>
> now , when i do :
>
> tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match ip sport 80
> 0xffff flowid 10:1
>
> I get an : RTNETLINK answers: Invalid argument
>
> but , if I'm typing
>
> tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip sport 80
> 0xffff flowid 1:1
> it's working (at least I don't have any messages..)
Euh, your first command is wrong and your second not.  You have to attach the 
filter to the root qdisc (parent 1:) and point it to a class (flowid 1:1) 
like you did in the first filter command.  That's all.

stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
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

* [LARTC] tc problem
  2003-04-03 19:43 [LARTC] tc problem Alexandru Coseru
  2003-04-03 20:12 ` Stef Coene
@ 2003-05-02 12:20 ` Alexandru Coseru
  2003-05-02 17:09 ` Stef Coene
  2003-05-07 12:22 ` Catalin BOIE
  3 siblings, 0 replies; 5+ messages in thread
From: Alexandru Coseru @ 2003-05-02 12:20 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 565 bytes --]

[root@alexcos root]# tc qdisc del dev eth1 root
[root@alexcos root]# tc qdisc add dev eth1 root handle 10: prio
[root@alexcos root]# tc qdisc add dev eth1 parent 10:1 handle 20:est 1sec 8
sec bfifo
Unknown qdisc "1sec", hence option "8" is unparsable
[root@alexcos root]# tc qdisc add dev eth1 parent 10:1 handle 20:est 1 sec 8
sec bfifo
Unknown qdisc "1", hence option "sec" is unparsable




can somebody tell me what is wrong here ?



                                                Thanks
                                                Alex

[-- Attachment #2: Type: text/html, Size: 1674 bytes --]

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

* Re: [LARTC] tc problem
  2003-04-03 19:43 [LARTC] tc problem Alexandru Coseru
  2003-04-03 20:12 ` Stef Coene
  2003-05-02 12:20 ` Alexandru Coseru
@ 2003-05-02 17:09 ` Stef Coene
  2003-05-07 12:22 ` Catalin BOIE
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-05-02 17:09 UTC (permalink / raw)
  To: lartc

On Friday 02 May 2003 14:20, Alexandru Coseru wrote:
> [root@alexcos root]# tc qdisc del dev eth1 root
> [root@alexcos root]# tc qdisc add dev eth1 root handle 10: prio
> [root@alexcos root]# tc qdisc add dev eth1 parent 10:1 handle 20:est 1sec 8
> sec bfifo
> Unknown qdisc "1sec", hence option "8" is unparsable
> [root@alexcos root]# tc qdisc add dev eth1 parent 10:1 handle 20:est 1 sec
> 8 sec bfifo
> Unknown qdisc "1", hence option "sec" is unparsable
>
>
>
>
> can somebody tell me what is wrong here ?
Yes.  You are executing a wrong command.  See the lartc.org howto for 
examples.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
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] tc problem
  2003-04-03 19:43 [LARTC] tc problem Alexandru Coseru
                   ` (2 preceding siblings ...)
  2003-05-02 17:09 ` Stef Coene
@ 2003-05-07 12:22 ` Catalin BOIE
  3 siblings, 0 replies; 5+ messages in thread
From: Catalin BOIE @ 2003-05-07 12:22 UTC (permalink / raw)
  To: lartc

On Fri, 2 May 2003, Alexandru Coseru wrote:

> [root@alexcos root]# tc qdisc del dev eth1 root
> [root@alexcos root]# tc qdisc add dev eth1 root handle 10: prio
> [root@alexcos root]# tc qdisc add dev eth1 parent 10:1 handle 20:est 1sec 8
> sec bfifo

Put a space between "20:" and "est".
Good luck!

> Unknown qdisc "1sec", hence option "8" is unparsable
> [root@alexcos root]# tc qdisc add dev eth1 parent 10:1 handle 20:est 1 sec 8
> sec bfifo
> Unknown qdisc "1", hence option "sec" is unparsable
>
>
>
>
> can somebody tell me what is wrong here ?
>
>
>
>                                                 Thanks
>                                                 Alex
>

---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
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-05-07 12:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-03 19:43 [LARTC] tc problem Alexandru Coseru
2003-04-03 20:12 ` Stef Coene
2003-05-02 12:20 ` Alexandru Coseru
2003-05-02 17:09 ` Stef Coene
2003-05-07 12:22 ` Catalin BOIE

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.