LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-22-2004, 10:20 AM   #1
maksly
LQ Newbie
 
Registered: Apr 2004
Posts: 2

Rep: Reputation: 0
Bandwidth Control


MY COMPANY IS AN INTERNET SERVICE PROVIDER, WIRELESS LAN CONECTION. OUR SERVER IS RUNNING ON LINUS. HOW CAN WE ALLOCATE A PERTICULAR BANDWITH FOR SPECIFIED CLIENT THROUGH HIS IP
ADDRESS?
 
Old 04-22-2004, 12:06 PM   #2
twistedpair
Member
 
Registered: Jan 2004
Posts: 71

Rep: Reputation: 15
Check into cbq.init, the wondershaper, and htb.init. If you google for that stuff, you should find something.

-Pair
 
Old 05-07-2004, 06:44 PM   #3
orko
Member
 
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Rep: Reputation: 19
hi MAKO,

searching in google may help u a lot for boasting ur knowledge. but here is a simple example for u with CBQ which i've implemented in my server.

u didn't give me details of ur linux server. but i assume u r using linux 7.0 or higher and u've installed shapecfg.

i do also assume,
internet interface is eth0
LAN interface is eth1 (subnet 192.168.1.0/24)

now go to /etc/sysconfig/cbq folder

creat a file naming like this:

cbq-{classid}.anytext | example:- cbq-10.firstclient

type the followings in cbq-10.firstclient

--------------------------------------------------
DEVICE=eth1,10Mbit,1Mbit
RATE=100Kbit
WEIGHT=10Kbit
PRIO=5
RULE=192.168.1.10
--------------------------------------------------
A short description:

first line is mandatory. u may use eth1,100Mbit,1Mbit if ur eth1 interface is 100/10M. if u want to control upload just replace "eth1" by "eth0"

"RATE" is the maximum bandwidth that this ip will get

"WIGHT" is 1/10th of RATE
"PRIO" ........leave it 5 as default
"RULE" is the ip address that will get this bandwidth
------------------------------------------------------------------------------
thats all to tie the downlink bandwidth for the client with ip 192.168.1.10

from root just type following command:

cbq stop
cbq start

u need to creat another class for another ip just like above. u can also set another line "RULE=192.168.1.11" within the same class so both ip 1.10 and 1.11 will together get the bandwidth provided in "RATE". u can also set different "PRIO" for different class so that different ip will get bandwidth in differnet priority basis...............u can do a lot which can't be explain in this short space.......
in fact, this is not anything details about cbq or bandwidth control. details can't be discussed here and i don't have that much of knowledge indeed.
just try this one and keep searching through google....


enjoy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bandwidth control djib Linux - Networking 2 10-10-2005 06:49 AM
control bandwidth omashhour Linux - Networking 3 07-03-2005 11:13 AM
Bandwidth control nOw Linux - Networking 3 09-16-2004 05:11 PM
Bandwidth Control ziox Linux - Networking 1 07-22-2004 06:40 PM
bandwidth control unit booyah Linux - Networking 3 06-14-2004 09:17 AM


All times are GMT -5. The time now is 08:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration