Few question on HTB
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 DEFAULT0 R2Q
eth0-2.root RATE%6kbps BURST%k
eth0-2:10.comp1 RATE0kbps BURSTk PRIO=0 LEAF=sfq RULE2.168.200.0/24
eth0-2:20.comp2 RATE€kbps BURST=8k PRIO=1 LEAF=sfq RULE2.168.100.0/24 eth0-2:30.server RATEVkbps BURST=6k PRIO=3 LEAF=sfq RULE 3.145.134.120/29
--------------------
eth1-2:30.root RATEVkbps BURST=6k
eth1-2:30:300.all RATEVkbps BURST=6k PRIO=3 LEAF=sfq RULE 3.145.134.120/29 MARK=3
--------------------
eth2-2:20.root RATE€kbps BURST=8k
eth2-2:20:200.all RATE€kbps BURST=8k PRIO=1 LEAF=sfq RULE2.168.100.0/24 MARK=2
--------------------
eth3-2:10.root RATE0kbps BURSTk
eth3-2:10:100.all RATE0kbps BURSTk PRIO=0 LEAF=sfq RULE2.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" <[email protected]>
To: "LARTC" <[email protected]>
Sent: Monday, March 29, 2004 5:08 PM
Subject: Suggestion required on CBQ !!!!!!
Quoted 2 lines
Dear Sir,
[snip]
Quoted 10 lines
-------------------------------------------------------------------------------------
-
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]
Quoted 1 line
_______________________________________________
LARTC mailing list / [email protected]
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 ?
Quoted 60 lines
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/htbdirectory.eth0 DEFAULT0 R2Q
eth0-2.root RATE%6kbps BURST%k
eth0-2:10.comp1 RATE0kbps BURSTk PRIO=0 LEAF=sfq
RULE2.168.200.0/24
eth0-2:20.comp2 RATE€kbps BURST=8k PRIO=1 LEAF=sfq
RULE2.168.100.0/24
eth0-2:30.server RATEVkbps BURST=6k PRIO=3 LEAF=sfq
RULE 3.145.134.120/29
--------------------
eth1-2:30.root RATEVkbps BURST=6k
eth1-2:30:300.all RATEVkbps BURST=6k PRIO=3 LEAF=sfq
RULE 3.145.134.120/29 MARK=3
--------------------
eth2-2:20.root RATE€kbps BURST=8k
eth2-2:20:200.all RATE€kbps BURST=8k PRIO=1 LEAF=sfq
RULE2.168.100.0/24 MARK=2
--------------------
eth3-2:10.root RATE0kbps BURSTk
eth3-2:10:100.all RATE0kbps BURSTk PRIO=0 LEAF=sfq
RULE2.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" <[email protected]>
To: "LARTC" <[email protected]>
Sent: Monday, March 29, 2004 5:08 PM
Subject: Suggestion required on CBQ !!!!!!Quoted 2 lines
Dear Sir,
[snip]
Quoted 4 lines
-------------------------------------------------------------------------------------
-
Scenario: Restrict Server, Comp1 & Comp2 on given speed. --256kbps---|eth0(203.145.134.112/255.255.255.252)Quoted 9 lines
|----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)
Quoted 6 lines
[snip]
Quoted 1 line
_______________________________________________
LARTC mailing list / [email protected]
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: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
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" <[email protected]>
To: "Sandeep Agarwal" <[email protected]>
Cc: "LARTC" <[email protected]>
Sent: Saturday, April 03, 2004 5:10 PM
Subject: Re: [LARTC] Few question on HTB
Quoted 46 lines
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 ?
Quoted 37 lines
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/htbdirectory.eth0 DEFAULT0 R2Q
eth0-2.root RATE%6kbps BURST%k
eth0-2:10.comp1 RATE0kbps BURSTk PRIO=0 LEAF=sfq
RULE2.168.200.0/24
eth0-2:20.comp2 RATE€kbps BURST=8k PRIO=1 LEAF=sfq
RULE2.168.100.0/24
eth0-2:30.server RATEVkbps BURST=6k PRIO=3 LEAF=sfq
RULE 3.145.134.120/29
--------------------
eth1-2:30.root RATEVkbps BURST=6k
eth1-2:30:300.all RATEVkbps BURST=6k PRIO=3 LEAF=sfq
RULE 3.145.134.120/29 MARK=3
--------------------
eth2-2:20.root RATE€kbps BURST=8k
eth2-2:20:200.all RATE€kbps BURST=8k PRIO=1 LEAF=sfq
RULE2.168.100.0/24 MARK=2
--------------------
eth3-2:10.root RATE0kbps BURSTk
eth3-2:10:100.all RATE0kbps BURSTk PRIO=0 LEAF=sfq
RULE2.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]
Quoted 11 lines
Adrian Saileanu
Netmaster Communications Srladdress: Str. Ion Brezoianu Nr. 20
Sector 1, Bucuresti, Romaniaoffice: +40 21 315 92 00
mobile: +40 723 979 586
email: [email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · Sandeep Agarwal
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]
Quoted 7 lines
&(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.
Quoted 1 line
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
Signature · 7 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / [email protected] 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" <[email protected]>
To: "Sandeep Agarwal" <[email protected]>
Cc: "LARTC" <[email protected]>
Sent: Saturday, April 03, 2004 6:23 PM
Subject: Re: [LARTC] Few question on HTB
Quoted 10 lines · Sandeep Agarwal
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]
Quoted 7 lines
&(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.
Quoted 1 line
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
--
[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 5 lines · Sandeep Agarwal
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
These 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.
Quoted 4 lines
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
--
[email protected]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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" <[email protected]>
To: "Stef Coene" <[email protected]>
Cc: "LARTC" <[email protected]>
Sent: Saturday, April 03, 2004 4:34 PM
Subject: Re: [LARTC] Few question on HTB
Quoted 2 lines
Hello Sir,
I have linux box with 4 NIC. 256kbps is reaching upto eth0 after router.
Now want to
Quoted 2 lines
split the this bandwidh within remaining NIC's.
I have gone through the lartc.org & prepared the earlier mentioned HTB
script files.
Quoted 9 lines
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
Quoted 8 lines
--------------------
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
Quoted 2 lines
again to you off the list.
This is what I understand from the instruction of htb.init. Is these are
correct for the
Quoted 39 lines
mentioned purpose? Or should I have to
prepare some more / other types of files.Thanking you,
Sandeep Agarwal
----- Original Message -----
From: '"'Stef Coene'"' <[email protected]>
To: '"'Sandeep Agarwal'"' <[email protected]>
Cc: '"'LARTC'"' <[email protected]>
Sent: Saturday, April 03, 2004 6:23 PM
Subject: Re: [LARTC] Few question on HTBQuoted 3 lines · Sandeep Agarwal
I want to achieve the following at my gateway.
Want to restrict Server, Comp1 & Comp2 on given
speed.
Quoted 1 line
--256kbps--->|eth0(203.145.134.112/255.255.255.252)
[A]
Quoted 2 lines
|----eth1(Serverroom)-->56kbps
Quoted 1 line
| (203.145.134.120/255.255.255.248)[B]
Quoted 1 line
|----eth2(Company1)---->80kbps
Quoted 1 line
| (203.145.134.116/255.255.255.252)[C]
Quoted 2 lines
&Quoted 3 lines
(192.168.100.0/255.255.255.0)
|----eth3(Company2)---->120kbps
Quoted 1 line
|(192.168.200.0/255.255.255.0)[D]
Quoted 1 line
Quoted 7 lines
Quoted 1 line
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.Quoted 1 line
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
Quoted 2 lines
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
Quoted 12 lines
htb qdisc to a network interface.
For shaping info, see lartc.org and docum.org.
Stef
--
[email protected]
'"'Using Linux as bandwidth manager'"'
http://www.docum.org/
#lartc @ irc.openprojects.net
Quoted 4 lines
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/