> Message: 9 > To: lartc@mailman.ds9a.nl > Subject: Re: [LARTC] Traffic Balance > Date: Fri, 01 Oct 2004 20:26:55 -0300 (EST) > From: favero@grad.ufsc.br > > list members: if u don´t wanna help, dont disturb! damn god! > everybody here know that LARTC tutorial to load balance is > incomplete! > Alexis: try http://www.ssi.bg/~ja/nano.txt and search the list. > U will find a message i wrote that explain everything. >maybe this work ip route add default scope global equalize \ nexthop via <your default GW1> dev <interface ethX> weight 1 \ nexthop via <your default GW2> dev <interface ethY> weight 1 Nicolas Macia _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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> _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.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=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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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" <stef.coene@docum.org> To: <lartc@mailman.ds9a.nl> 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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ _______________________________________________ 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/
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 -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
It''s possible to shape icmp protocol using htb.init script ? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Anybody know how to shape icmp traffic using htb.init script ? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Tue, 9 Nov 2004, Key wrote:> It''s possible to shape icmp protocol using htb.init script ? > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/Yes, it''s possible. # match icmp echo request tc filter add dev $dev protocol ip parent x: u32 \ match ip icmp_type 0x08 0xff flowid 1:2 # match icmp echo reply tc filter add dev $dev protocol ip parent x: u32 \ match ip icmp_type 0x00 0xff flowid 1:2 See /usr/include/linux/icmp.h for more types. --- Catalin(ux aka Dino) BOIE catab at deuroconsult.ro http://kernel.umbrella.ro/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/