Hello Ashwin,
Thanks again. I have checked it & found modules already there.
So I have go to HTB config directly and done all as you suggest.
Please go through the following & suggest whether I have done it correctly or
more modification required? I have IPCHAINS on this server so
I have to require to put -m option more in IPCHAINS right?
Thanking you,
Sandeep Agarwal
-------------------------------------------------------------------------------------
-----
Scenario: 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(Company2) 80kbps (203.145.134.116/255.255.255.252) [C]
&
(192.168.100.0/255.255.255.0)
----|eth3(Company1) 120kbps(192.168.200.0/255.255.255.0) [D]
-------------------------------------------------------------------------------------
-----
Now in /etc/sysconfig/htb directory, I have put following files.
eth0
DEFAULT=30
R2Q=10
eth0-2.root
# root class containing total bandwidth
RATE=128kbps
BURST=15k
eth0-2:1.comp1
# default class for Company1 traffic
RATE=120Kbps
BURST=15k
PRIO=0
LEAF=sfq
RULE=192.168.200.0/24
eth0-2:2.comp2
# default class for Company2 traffic
RATE=80Kbps
BURST=10k
PRIO=1
LEAF=sfq
RULE=192.168.100.0/24
eth0-2:1.server
# default class for Server Room traffic
RATE=56Kbps
BURST=10k
PRIO=3
LEAF=sfq
RULE=203.145.134.120/29
----------------------------------------------------------
eth1-2:3.root
# root class For Server Room containing total bandwidth
RATE=56kbps
BURST=5k
eth1-2:3:30.all
# class for Server Room traffic
RATE=56Kbps
BURST=5k
PRIO=3
LEAF=sfq
RULE=203.145.134.120/29
MARK=3
----------------------------------------------------------
eth2-2:2.root
# root class For Company2 containing total bandwidth
RATE=80kbps
BURST=8k
eth2-2:2:20.all
# class for outgoing Company2 traffic
RATE=80Kbps
BURST=8k
PRIO=1
LEAF=sfq
RULE=192.168.100.0/24
MARK=2
----------------------------------------------------------
eth3-2:1.root
# root class For Company1 containing total bandwidth
RATE=120kbps
BURST=15k
eth3-2:1:10.all
# class for outgoing Company1 traffic
RATE=120Kbps
BURST=15k
PRIO=0
LEAF=sfq
RULE=192.168.200.0/24
MARK=1
-------------------------------------------------------------------------------------
-----
----- Original Message -----
From: "Ashwin Shah" <[EMAIL PROTECTED]>
To: "'Sandeep Agarwal'" <[EMAIL PROTECTED]>; "'The Linux-Delhi mailing
list'" <[EMAIL PROTECTED]>
Sent: Wednesday, March 31, 2004 11:13 AM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!!!!!
First look for the following files in /lib/modules/2.4.20-8/kernel/net/sched
sch_htb.o sch_sfq.o cls_fw.o cls_u32.o cls_route.o
if these files exist then great you can go directly to HTB config below.
Else you will have to compile these. To compile do as follows
1) bash# cd /usr/src/linux-2.4
2) bash# make menuconfig
3) Go to Networking options ---> press Enter
4) Go to QoS and/or fair queueing ---> press Enter
5) Select * for QoS and/or fair queueing, QoS support, Rate estimator,
Packet classifier API and Traffic Policing
6) Select M for HTB packet scheduler, SFQ packet scheduler and all the
classifier entries.
7) Compile the kernel bash# make dep clean bzImage modules modules_install
(that was one long command)
8) Install the new kernel in boot. Run lilo/grub
9) reboot
HTB config
Download htb.init and the sample config files from sourceforge
Copy htb.init to /etc/init.d
Copy sample files to /etc/sysconfig/htb
Read the htb.init file to learn how to configure the sample files. It's
pretty simple.
And Viola! You are done.
Best of luck
Best regards,
Ashwin Shah
-----Original Message-----
From: Sandeep Agarwal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 31, 2004 10:26 AM
To: [EMAIL PROTECTED]; 'The Linux-Delhi mailing list'
Subject: Re: [ilugd] Re: Suggestion required on CBQ !!!!!!
Hello Ashwin,
Thank you for your response. I have a RHL9.0 with kernel 2.4.20-8 on i686.
Should I require to patch my kernel? If yes, Please suggest which version it
OK for
this.
I have checked the following command
# grep htb_qdisc_ops /proc/ksyms
But it returns nothing.
Thanking you.
Sandeep Agarwal
----- Original Message -----
From: "Ashwin Shah" <[EMAIL PROTECTED]>
To: "'Sandeep Agarwal'" <[EMAIL PROTECTED]>; "'The Linux-Delhi
mailing
list'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 6:00 PM
Subject: RE: [ilugd] Re: Suggestion required on CBQ !!!!!!
> You have to create the htb directory in /etc/sysconfig. Also the format
> of the files is different. Htb should also be enabled in the kernel
> either as a module or built into the kernel itself. Though in some ways
> it is similar to cbq it requires to be compiled into the kernel first.
> It will take a bit more effort than using CBQ but works much better. If
> you still want to use CBQ let me know and I will send instructions for
> the same.
>
> Best regards
>
> Ashwin Shah
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> On Behalf Of Sandeep Agarwal
> Sent: Monday, March 29, 2004 5:30 PM
> To: Abhijit Menon-Sen
> Cc: [EMAIL PROTECTED]
> Subject: [ilugd] Re: Suggestion required on CBQ !!!!!!
>
> ....."It's derived from cbq.init"
> Should I leave the files under /etc/sysconfig/cbq as it is And load &
> configure the
> HTB? Or remove All CBQ entry first from the system.
>
> Sandeep
> ----- Original Message -----
> From: "Abhijit Menon-Sen" <[EMAIL PROTECTED]>
> To: "Sandeep Agarwal" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Monday, March 29, 2004 5:04 PM
> Subject: Re: Suggestion required on CBQ !!!!!!
>
>
> > At 2004-03-29 16:58:26 +0530, [EMAIL PROTECTED] wrote:
> > >
> > > CBQ is ok for this or any other tool is/are suggested?
> >
> > (I'd recommend HTB instead.
> > See <http://www.lartc.org>)
> >
> > -- ams
> >
>
> _______________________________________________
> ilugd mailinglist -- [EMAIL PROTECTED]
> http://frodo.hserus.net/mailman/listinfo/ilugd
> Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
> http://www.mail-archive.com/[EMAIL PROTECTED]/
>
>
_______________________________________________
ilugd mailinglist -- [EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi
http://www.mail-archive.com/[EMAIL PROTECTED]/