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


  Search this Thread
Old 08-15-2005, 12:57 PM   #1
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


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

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

Rep: Reputation: 19
i guess ur laptop ip is and gateway for ur laptop is
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
touch /etc/sysconfig/cbq/cbq-101.mylaptop
3) edit the file cbq-101.mylaptop with ur favorite editor

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

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

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.


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
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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:00 AM.

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