LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 09-21-2005, 10:06 AM   #1
ikillu
Member
 
Registered: Jul 2004
Posts: 34

Rep: Reputation: 15
I question about CBQ: please help me!


Hi,
I use CBQ for internet bandwidth shaping. my internet connection diagram like this . . . .

ISP
|
|
eth1 - 195.xxx.xxx.xxx
|
Server
|
eth0 - 192.168.0.1
|
|
Local Network
|

CBQ conf file like this....
Quote:
DEVICE=eth0,10Mbit,1Mbit
RATE=80Kbit
WEIGHT=5Kbit
PRIO=5
RULE=192.168.0.0/24
it is work. but when I try to download something from My Server 192.168.0.1 this rule also apply. but I want, when user download something from 192.168.0.1 they get full bandwidth, and when they download something from INTERNET they get 80Kbit. for this I change DEVICE eth1 from eth0 like this . .

Quote:
DEVICE=eth1,10Mbit,1Mbit
RATE=80Kbit
WEIGHT=5Kbit
PRIO=5
RULE=192.168.0.0/24
but this won't work. pls help me to fix this problem.
 
Old 09-25-2005, 01:28 PM   #2
frostschutz
Member
 
Registered: Apr 2004
Distribution: Gentoo
Posts: 64

Rep: Reputation: 16
I've never had much success with CBQ, but if it's class based in a way similar to HTB, then you should be able to apply the solution I use for HTB:

Code:
HTB root QDisc
|
\--- HTB root class (Interface Speed)
      |
      \--- HTB internet class (Internet Speed)
      |     |
      |     \--- ... HTB internet traffic shaping classes go here ...
      |
      \--- HTB local network class (Interface minus Internet Speed)
 
  


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
CBQ-help ikillu Linux - Networking 3 06-30-2005 03:33 PM
Where is CBQ? shrike_912 Linux - Newbie 3 10-26-2004 12:09 PM
Where is CBQ? shrike_912 Programming 2 10-25-2004 02:39 PM
CBQ and mldonkey thinkninja Linux - Newbie 0 08-22-2003 04:30 PM
cbq.init zipzero Linux - Networking 0 02-20-2002 03:46 PM


All times are GMT -5. The time now is 11:10 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