From: "Sandeep Agarwal" Date: Sat, 03 Apr 2004 13:46:19 +0000 Subject: Re: [LARTC] Few question on HTB Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Hello Sir, I have linux box with 4 NIC. 256kbps is reaching upto eth0 after router. Now want to split the this bandwidh within remaining NIC's. I have gone through the lartc.org & prepared the earlier mentioned HTB script files. The name of files are eth0 eth0-2.root eth0-2:10.comp1 eth0-2:20.comp2 eth0-2:30.server -------------------- eth1-2:30.root eth1-2:30:300.all -------------------- eth2-2:20.root eth2-2:20:200.all -------------------- eth3-2:10.root eth3-2:10:100.all ----------------------------- I have already mailed the scripts to you on your ID. If you suggest, I can mail them again to you off the list. This is what I understand from the instruction of htb.init. Is these are correct for the mentioned purpose? Or should I have to prepare some more / other types of files. Thanking you, Sandeep Agarwal ----- Original Message ----- From: "Stef Coene" To: "Sandeep Agarwal" Cc: "LARTC" Sent: Saturday, April 03, 2004 6:23 PM Subject: Re: [LARTC] Few question on HTB On Saturday 03 April 2004 14:24, Sandeep Agarwal wrote: > I want to achieve the following at my gateway. > > Want to restrict Server, Comp1 & Comp2 on given speed. > --256kbps--->|eth0(203.145.134.112/255.255.255.252) [A] > > |----eth1(Server room)-->56kbps > | (203.145.134.120/255.255.255.248) [B] > | ----eth2(Company1)---->80kbps > | (203.145.134.116/255.255.255.252) [C] > > & > (192.168.100.0/255.255.255.0) > > |----eth3(Company2)---->120kbps > | (192.168.200.0/255.255.255.0)[D] > > I have RHL 9.0 with Kernel 2.4.20-8 on i686 & IPCHAINS as a firewall. Ipchains is for 2.2.x kernel. Iptables is the new firewill configuration tool. > Please suggest now what I have to do......??? Correct me if I'm wrong, but you have a router with 4 interfaces. Eth0 is the internet link and you want to control bandwidth used by the 3 other interfaces. Remember that you can only shape outging bandwidth if you add a htb qdisc to a network interface. For shaping info, see lartc.org and docum.org. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/