LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-01-2002, 08:56 AM   #1
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Rep: Reputation: 15
Bandwidth Limiting


Ok here is the situation:

I am on the technology staff at a college and we are wanting to put in a Linux server to limit the bandwidth to the dorms (4).
So our students that are distance learning can actually get connected. Morpheus and Kaza ad all of their buddies are choking us to death.


We have decided that the best way to do it without limiting our faculty/staff network is to put the server in place where all of the fiber lines from the dorms connect to the network.

What I was hoping to do is to set up a Redhat Linux 7.2 Server with 5 network cards in it to act as a Router/DHCP Server/Bandwidth Limiter/Firewall.

I have successfully set up the DHCP server giving out different leases to the different networks attached to each NIC (Much Thanks goes to Finegan for his help on that.) Now I have moved on to the Bandwidth limiting.

I have been going through the How-To's on the subject and have been reading up on CBQ and the TC command but have been hearing some conflicting things about CBQ.

There is also another Queuing discipline named HTB. This stuff seems to get pretty complicated fast. Does anyone know what the best tool is for the job and where I can find some good example scripts, or is anyone actually doing this?

Thanks for the help and let me know if more info is needed.

Paul
 
Old 01-01-2002, 01:45 PM   #2
hawkpaul
Member
 
Registered: Nov 2001
Location: Black Mountain , NC
Distribution: Debian
Posts: 46

Original Poster
Rep: Reputation: 15
Wink An answer presents itself

Well I can answer my own question this time.

I took a closer look at some of the documentation and found out how to fix my problem.

I found out that configuration files for CBQ should be created in the /etc/sysconfig/cbq directory.

They are named like this

cbq-10.name
| |______name of the limiter file
|__id number each configuration file should be different

I created a test file and limited bandwidth for VNC (port 5900) to test the config.

DEVICE=eth0,10Mbit,1Mbit #Options for the NIC
RATE=1Kbit #How much bandwidth VNC gets.. ouch
WEIGHT=1Kbit
PRIO=5 #The priority this shaper has over others
RULE=:5900,:5900 #This rule is telling CBQ to limit the bandwidth
#from any address on port 5900 to any
#address on port 5900

That's it!

All I had to do when I saved my configuration file was give the Command to start CBQ which is /sbin/cbq start
and it was working.
I was able to connect through the router/shaper to a machine on the other side with VNC but it was soooooo.... sloooow.

I am going to try and put it into its real place tomorrow and see how it works out.

I hope this helps someone else. I am still checking it out to find out what else I can use.

Happy New Year

Paul
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bandwidth limiting gubak Linux - Networking 1 03-02-2005 06:51 AM
Bandwidth Limiting UnrealTear Linux - Software 2 04-10-2004 10:33 PM
Bandwidth limiting dunkyb Linux - Networking 3 09-17-2003 04:36 AM
Bandwidth limiting turb0freak Linux - Networking 10 08-15-2003 10:29 PM
bandwidth limiting karunesh Linux - Networking 5 11-09-2002 02:28 AM


All times are GMT -5. The time now is 05:38 AM.

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