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? Thanks for any help.
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 <eric@regit.org>
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=3D192.168.1.0/28 and > eth0-2:20 with RULE=3D192.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? =46irst match will classify the packet and no other filter will be checked. Stef =2D-=20 stef.coene@docum.org =A0"Using Linux as bandwidth manager" =A0 =A0 =A0http://www.docum.org/
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
On Thu, 28 Oct 2004 18:33:14 +0700, Key <kristiadi_himawan@dtp.net.id> 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 / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > -- Bla bla