Re: [LARTC] Some question

2004-10-30 Thread Stef Coene
On Thursday 28 October 2004 14:05, Key wrote:
> Sometimes i have to face situation like that,
> so how about if ip address 192.168.1.1 should get
> bandwidth only from 2:20 and become first time to check,
> configuring the prio?
You can use filters with different prio.  The filters with the lowest prio 
will be checked first.

Stef

-- 
[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Some question

2004-10-28 Thread Key
Sometimes i have to face situation like that,
so how about if ip address 192.168.1.1 should get
bandwidth only from 2:20 and become first time to check,
configuring the prio?

- Original Message - 
From: "Stef Coene" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 28, 2004 6:52 PM
Subject: Re: [LARTC] Some question


On Thursday 28 October 2004 13:33, Key wrote:
> Hi,
>
> I have some question about HTB :
>
> 1. I read that HTB priority is only 8 level, from 0 to 7. So if i want to
> give different priority
> to more than 8 class, what should i do?
Nothing, except changing the source to support more :)

> 2. What happen if i have class eth0-2:10 with RULE=192.168.1.0/28 and
> eth0-2:20 with RULE=192.168.1.1.
> Ip address 192.168.1.1 will get both bandwidth from class id 2:20 and 2:10
> ? How about if i want ip address 192.168.1.1 only get bandwidth from class
> id 2:20 only?
Do you use?
First match will classify the packet and no other filter will be checked.


Stef

-- 
[EMAIL PROTECTED]
"Using Linux as bandwidth manager"
http://www.docum.org/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Some question

2004-10-28 Thread George Alexandru Dragoi
On Thu, 28 Oct 2004 18:33:14 +0700, Key <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I have some question about HTB :
> 
> 1. I read that HTB priority is only 8 level, from 0 to 7. So if i want to
> give different priority
> to more than 8 class, what should i do?
> 
> 2. What happen if i have class eth0-2:10 with RULE=192.168.1.0/28 and
> eth0-2:20 with RULE=192.168.1.1.
> Ip address 192.168.1.1 will get both bandwidth from class id 2:20 and 2:10 ?
> How about if i want ip address 192.168.1.1 only get bandwidth from class id
> 2:20 only?

For 2:20 put a smaller number on its filter, because the filter
distribute traffic to qdisc atached to htb leaf classes.

> Thanks for any help.
> 
> ___
> LARTC mailing list / [EMAIL PROTECTED]
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 


-- 
Bla bla
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Some question

2004-10-28 Thread Andreas Klauer
Am Thursday 28 October 2004 13:33 schrieb Key:
> 1. I read that HTB priority is only 8 level, from 0 to 7. So if i want
> to give different priority to more than 8 class, what should i do?

8 levels is plenty. You must have a really, really unusual / complicated 
setup to require HTB prio at all, let alone more than 8 levels.

> Ip address 192.168.1.1 will get both bandwidth from class id 2:20 and
> 2:10 ?

Highly unlikely.

> How about if i want ip address 192.168.1.1 only get bandwidth 
> from class id 2:20 only?

Use filter prio to catch 192.168.1.1 before the 192.168.1.* rule.

HTH
Andreas
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Some question

2004-10-28 Thread Stef Coene
On Thursday 28 October 2004 13:33, Key wrote:
> Hi,
>
> I have some question about HTB :
>
> 1. I read that HTB priority is only 8 level, from 0 to 7. So if i want to
> give different priority
> to more than 8 class, what should i do?
Nothing, except changing the source to support more :)

> 2. What happen if i have class eth0-2:10 with RULE=192.168.1.0/28 and
> eth0-2:20 with RULE=192.168.1.1.
> Ip address 192.168.1.1 will get both bandwidth from class id 2:20 and 2:10
> ? How about if i want ip address 192.168.1.1 only get bandwidth from class
> id 2:20 only?
Do you use?
First match will classify the packet and no other filter will be checked.


Stef

-- 
[EMAIL PROTECTED]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


Re: [LARTC] Some question

2004-10-28 Thread Eric Leblond
On Thu, 2004-10-28 at 18:33 +0700, Key wrote:
> Hi,
> 
> I have some question about HTB :
> 
> 1. I read that HTB priority is only 8 level, from 0 to 7. So if i want to
> give different priority
> to more than 8 class, what should i do?

It is a #define in htb source code in linux kernel tree. It can be
changed easily :
TC_HTB_NUMPRIO
in 
include/linux/pkt_sched.h

BR,
-- 
Eric Leblond <[EMAIL PROTECTED]>

___
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/