Dear All, Sorry to trouble again..... After go through www.lartc.org I have implemented the HTB instead of CBQ for the same scenario. Now following files are under /etc/sysconfig/htb directory. eth0 DEFAULT=30 R2Q=10 eth0-2.root RATE=256kbps BURST=25k eth0-2:10.comp1 RATE=120kbps BURST=12k PRIO=0 LEAF=sfq RULE=192.168.200.0/24 eth0-2:20.comp2 RATE=80kbps BURST=8k PRIO=1 LEAF=sfq RULE=192.168.100.0/24 eth0-2:30.server RATE=56kbps BURST=6k PRIO=3 LEAF=sfq RULE=203.145.134.120/29 -------------------- eth1-2:30.root RATE=56kbps BURST=6k eth1-2:30:300.all RATE=56kbps BURST=6k PRIO=3 LEAF=sfq RULE=203.145.134.120/29 MARK=3 -------------------- eth2-2:20.root RATE=80kbps BURST=8k eth2-2:20:200.all RATE=80kbps BURST=8k PRIO=1 LEAF=sfq RULE=192.168.100.0/24 MARK=2 -------------------- eth3-2:10.root RATE=120kbps BURST=12k eth3-2:10:100.all RATE=120kbps BURST=12k PRIO=0 LEAF=sfq RULE=192.168.200.0/24 MARK=1 ----------------------------- When I have run # service htb.init start # it returns nothing . Is it OK? Also stats returns nothing. Are the above configuration files OK? Thanking you, Sandeep Agarwal ----- Original Message ----- From: "Sandeep Agarwal" <sandeep_agarwal@hotmail.com> To: "LARTC" <lartc@mailman.ds9a.nl> Sent: Monday, March 29, 2004 5:08 PM Subject: Suggestion required on CBQ !!!!!!> Dear Sir, >[snip]> ------------------------------------------------------------------------------------- > - > Scenario: Restrict Server, Comp1 & Comp2 on given speed. > --256kbps---|eth0(203.145.134.112/255.255.255.252) > |----eth1(Server room) 56kbps (203.145.134.120/255.255.255.248) > |----eth2(Company2) 80kbps (203.145.134.116/255.255.255.252) > & > (192.168.100.0/255.255.255.0) > |----eth3(Company1) 120kbps(192.168.200.0/255.255.255.0) >[snip]>_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Hello ... What are you trying to do ? I don''t find any sence to your script ... you are attaching a htb disc on eth0, then map subclasses on eth1, eth2 eth3 ?????? I don''t get it ... Can you tell us what are you trying to achieve ?> Dear All, > > Sorry to trouble again..... After go through www.lartc.org I have > implemented the HTB instead of CBQ > for the same scenario. > Now following files are under /etc/sysconfig/htb directory. > > eth0 DEFAULT=30 R2Q=10 > eth0-2.root RATE=256kbps BURST=25k > eth0-2:10.comp1 RATE=120kbps BURST=12k PRIO=0 LEAF=sfq > RULE=192.168.200.0/24 > eth0-2:20.comp2 RATE=80kbps BURST=8k PRIO=1 LEAF=sfq > RULE=192.168.100.0/24 > eth0-2:30.server RATE=56kbps BURST=6k PRIO=3 LEAF=sfq > RULE=203.145.134.120/29 > -------------------- > eth1-2:30.root RATE=56kbps BURST=6k > eth1-2:30:300.all RATE=56kbps BURST=6k PRIO=3 LEAF=sfq > RULE=203.145.134.120/29 MARK=3 > -------------------- > eth2-2:20.root RATE=80kbps BURST=8k > eth2-2:20:200.all RATE=80kbps BURST=8k PRIO=1 LEAF=sfq > RULE=192.168.100.0/24 MARK=2 > -------------------- > eth3-2:10.root RATE=120kbps BURST=12k > eth3-2:10:100.all RATE=120kbps BURST=12k PRIO=0 LEAF=sfq > RULE=192.168.200.0/24 MARK=1 > ----------------------------- > > When I have run > # service htb.init start > # > it returns nothing . Is it OK? Also stats returns nothing. Are the above > configuration files OK? > > Thanking you, > Sandeep Agarwal > ----- Original Message ----- > From: "Sandeep Agarwal" <sandeep_agarwal@hotmail.com> > To: "LARTC" <lartc@mailman.ds9a.nl> > Sent: Monday, March 29, 2004 5:08 PM > Subject: Suggestion required on CBQ !!!!!! > > >> Dear Sir, >> > [snip] >> ------------------------------------------------------------------------------------- >> - >> Scenario: Restrict Server, Comp1 & Comp2 on given speed. >> --256kbps---|eth0(203.145.134.112/255.255.255.252) >> |----eth1(Server room) 56kbps >> (203.145.134.120/255.255.255.248) >> |----eth2(Company2) 80kbps >> (203.145.134.116/255.255.255.252) >> & >> (192.168.100.0/255.255.255.0) >> |----eth3(Company1) >> 120kbps(192.168.200.0/255.255.255.0) >> > [snip] >> > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >Adrian Saileanu Netmaster Communications Srl address: Str. Ion Brezoianu Nr. 20 Sector 1, Bucuresti, Romania office: +40 21 315 92 00 mobile: +40 723 979 586 email: adrian@smartcall.ro _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Dear Sir, Please forgive me for my mistake...... 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. Please suggest now what I have to do......??? Regards Sandeep Agarwal ----- Original Message ----- From: "Adrian Saileanu" <adrian@smartcall.ro> To: "Sandeep Agarwal" <sandeep_agarwal@hotmail.com> Cc: "LARTC" <lartc@mailman.ds9a.nl> Sent: Saturday, April 03, 2004 5:10 PM Subject: Re: [LARTC] Few question on HTB> > Hello ... > > What are you trying to do ? I don''t find any sence to your script ... > you are attaching a htb disc on eth0, then map subclasses on eth1, eth2 > eth3 ?????? I don''t get it ... > > Can you tell us what are you trying to achieve ? > > > Dear All, > > > > Sorry to trouble again..... After go through www.lartc.org I have > > implemented the HTB instead of CBQ > > for the same scenario. > > Now following files are under /etc/sysconfig/htb directory. > > > > eth0 DEFAULT=30 R2Q=10 > > eth0-2.root RATE=256kbps BURST=25k > > eth0-2:10.comp1 RATE=120kbps BURST=12k PRIO=0 LEAF=sfq > > RULE=192.168.200.0/24 > > eth0-2:20.comp2 RATE=80kbps BURST=8k PRIO=1 LEAF=sfq > > RULE=192.168.100.0/24 > > eth0-2:30.server RATE=56kbps BURST=6k PRIO=3 LEAF=sfq > > RULE=203.145.134.120/29 > > -------------------- > > eth1-2:30.root RATE=56kbps BURST=6k > > eth1-2:30:300.all RATE=56kbps BURST=6k PRIO=3 LEAF=sfq > > RULE=203.145.134.120/29 MARK=3 > > -------------------- > > eth2-2:20.root RATE=80kbps BURST=8k > > eth2-2:20:200.all RATE=80kbps BURST=8k PRIO=1 LEAF=sfq > > RULE=192.168.100.0/24 MARK=2 > > -------------------- > > eth3-2:10.root RATE=120kbps BURST=12k > > eth3-2:10:100.all RATE=120kbps BURST=12k PRIO=0 LEAF=sfq > > RULE=192.168.200.0/24 MARK=1 > > ----------------------------- > > > > When I have run > > # service htb.init start > > # > > it returns nothing . Is it OK? Also stats returns nothing. Are the above > > configuration files OK? > > > > Thanking you, > > Sandeep Agarwal[snip]> > > Adrian Saileanu > Netmaster Communications Srl > > address: Str. Ion Brezoianu Nr. 20 > Sector 1, Bucuresti, Romania > > office: +40 21 315 92 00 > mobile: +40 723 979 586 > email: adrian@smartcall.ro_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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/
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" <stef.coene@docum.org> To: "Sandeep Agarwal" <sandeep_agarwal@hotmail.com> Cc: "LARTC" <lartc@mailman.ds9a.nl> 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/
On Saturday 03 April 2004 15:34, Sandeep Agarwal wrote:> 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 areThese files are useless for us. You use htb.init to configure the router setup and this mailinglist is for general qos discussions, not for htb.init implementation details.> 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.You really should read some more documentation about this. - you can only shape outgoing traffic - what means prio - rate - burst - ceil - natting + filtering on ip address can be a problem 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/
Hi all, How can i set a port range in the low priority source ports (NOPRIOPORTSRC=) on Whondershaper ??? I want to specify a port interval, like from 1025 to 5120, to have lower priority. Shoud i use something like 1025-5120? Regards, LEANDRO TRAVAGLIA --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.648 / Virus Database: 415 - Release Date: 31/3/2004
since you have quite complex hardware setup, you should use imq driver, then you will be able shape any reafic and match on usefull addreses, out script is usable, just change eth0 to imq but if you use ipchains, then you cant use imq ----- Original Message ----- From: "Sandeep Agarwal" <sandeep_agarwal@hotmail.com> To: "Stef Coene" <stef.coene@docum.org> Cc: "LARTC" <lartc@mailman.ds9a.nl> Sent: Saturday, April 03, 2004 4:34 PM Subject: Re: [LARTC] Few question on HTB> 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 HTBscript 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 canmail them> again to you off the list. > This is what I understand from the instruction of htb.init. Is these arecorrect 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''"'' <stef.coene@docum.org> > To: ''"''Sandeep Agarwal''"'' <sandeep_agarwal@hotmail.com> > Cc: ''"''LARTC''"'' <lartc@mailman.ds9a.nl> > 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 isthe> internet link and you want to control bandwidth used by the 3 other > interfaces. Remember that you can only shape outging bandwidth if you adda> 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/ >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/