This question comes up pretty often. Conceptually, we can do it in two ways. 1. All outgoing traffic is shaped on the interface which is internet facing say eth0. Then the incoming traffic will go the LAN thro' eth1. In this case shaping outgoing traffic on eth1 is nearly equivalent to shaping incoming traffic on eth0 ( assuming all traffic is for the LAN and not for the host). Another option to limit incoming traffic on eth0 is to use the ingress qdisc and police rates to a cap and shape the bandwidth utilised on eth1 to the LAN. In the case above, bandwidth is apportioned as incoming and outgoing separately. In the case of many ISPs, they would like to allocate bandwidth for incoming + outgoing instead of dividing what is allotted further between incoming and outgoing. In such a case, IMQ device is used. Shaping IMQ will shape the aggregated traffic of incoming+outgoing. Mohan -----Original Message----- From: lartc-admin@xxxxxxxxxxxxxxx [mailto:lartc-admin@xxxxxxxxxxxxxxx]On Behalf Of hare ram Sent: 04 March 2003 11:54 To: Stef Coene; lartc@xxxxxxxxxxxxxxx Subject: Re: [LARTC] Need some help on HTB and IMQ Hi Stef i was going through this thread you mentioned if iam using this Linux box as a gateway, i dont required IMQ to control ingress and egress how can do with out IMQ, can you point me i have 2 interface eth0 and eth1 like to control bandwidth for my users both up and down thanks hare ----- Original Message ----- From: "Stef Coene" <stef.coene@xxxxxxxxx> To: "hanumantha kavuluru" <hkavuluru@xxxxxxxxx>; <lartc@xxxxxxxxxxxxxxx> Sent: Tuesday, February 25, 2003 1:12 AM Subject: Re: [LARTC] Need some help on HTB and IMQ > On Monday 24 February 2003 20:24, hanumantha kavuluru wrote: > > Hi All, > > > > I am fairly new to Linux and TC. I am currently implementing Bandwidth > > Management/Traffic Control for a gateway product which is based on Linux > > 2.4.18 kernel. I am required to implement some kind of a user based traffic > > control where each user(source IP) is allocated a fixed amount of > > bandwidth. I also need to do traffic shaping both for the eggress and > > ingress traffic. Going through LARTC documentation , I found that IMQ with > > HTB will suit my requirement. Is anybody using IMQ with HTB? Can HTB and > > IMQ work with 2.4.18 kernel? If so, where can i download all the patches? > > It is difficult for us to migrate to 2.4.20 kernel as most of the software > > has already been developed using 2.4.18 kernel. > http://luxik.cdi.cz/~patrick/imq/ > http://luxik.cdi.cz/~devik/qos/htb/ > And you don't need imq. If you have a gateway, you can shape on both > interface so you can control up- and download traffic. > > Just wondering, what kind of software do you developped so you can not use > kernel 2.4.20 ?? > > Stef > > -- > > stef.coene@xxxxxxxxx > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.net > > _______________________________________________ > LARTC mailing list / LARTC@xxxxxxxxxxxxxxx > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > _______________________________________________ LARTC mailing list / LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/