LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-15-2005, 12:57 PM   #1
hasnain
Member
 
Registered: Jun 2004
Location: Karachi
Distribution: Redhat
Posts: 56

Rep: Reputation: 15
Unhappy Bandwidth Limiting Using CBQ..problem :(


hi can you please explain me how to limit the bandwidth by using cbq.init, im really new to it

Here is my scenario i have two interfaces connected to my linux box eth0 is connected to my Laptop and eth1 is connected to cable modem (internet) 64K

Eth0= 192.168.17.1
Eth1= 202.5.145.65


Now i want to limit my Laptop internet usage to be 3k for for everything , can any one please help me to make configuration file (/etc/sysconfig/cbq/) for this scenario

Any help would be greately appreciated

Thanks
 
Old 03-04-2006, 02:17 PM   #2
orko
Member
 
Registered: Nov 2003
Location: Chittagong, Bangladesh
Distribution: RHEL 5
Posts: 63

Rep: Reputation: 19
i guess ur laptop ip is 192.168.17.2 and gateway for ur laptop is 192.168.17.1
do the followings: -
1) move everything from /etc/sysconfig/cbq folder to another backup folder.
2) create a new file in /etc/sysconfig/cbq folder
Code:
touch /etc/sysconfig/cbq/cbq-101.mylaptop
3) edit the file cbq-101.mylaptop with ur favorite editor

Code:
DEVICE=eth0,10Mbit,1Mbit # its ur eth0's speed . it can be 100Mbit, 10Mbit
RATE=24Kbit #this is ur desired bandwidth rate
WEIGHT=2.4 kbit
PRIO=5 
RULE=192.168.17.2

save it ....... then do follwoings

Code:
cbq stop
cbq start
This is the simplest configuration. u can do a lot more with cbq. find ur cbq.init file and read it.

Last edited by orko; 03-04-2006 at 02:18 PM.
 
  


Reply



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
using cbq.init to shape bandwidth? shrike_912 Linux - Software 1 10-31-2004 11:24 AM
cbq squid delay pool bandwidth issue tarak4u Linux - Networking 0 03-12-2004 10:12 AM
limiting upload with CBQ orko Linux - Networking 3 11-28-2003 03:46 PM
Bandwidth limiting using cbq - UL only barlent Linux - Networking 0 04-30-2003 12:10 AM
need advice about cbq/iproute2/bandwidth shaper setting Yaukuai Linux - Networking 0 08-03-2001 09:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration