LinuxQuestions.org
Visit Jeremy's Blog.
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 10-09-2004, 12:05 PM   #1
johnsto
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Traffic shaping for network w/ 1 NIC


Hey,

Hopefully I can explain this clearly enough...

We have a wired network consisting of several PCs and an ADSL router that all connect together at a switch and hence give the PCs access to the internet via the router. The PCs simply use the ADSL router as their gateway.

What I'd love to do is introduce traffic shaping... but the ADSL router is hardware so I can't do it there (no supported firmware does traffic shaping, but does act as a very good firewall).

I do however have a spare mini-itx PC which is great, and ideally I'd run IPCop on it, direct all the PCs to use it as their gateway, and hook it to the router - unfortunately it only has one NIC (and there's no space in it's case for more) so I can't do this either.

Does anyone know if it's possible to use this additional PC to manage traffic shaping on this network if it's only got one NIC?
 
Old 10-09-2004, 02:28 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
shouldn't be a problem. blocks of rules in cbq can be defined by a number of ways including ip subnets. see the manpages of cbq and tc for details on defining cbq classes. as a small example:
Code:
DEVICE=eth0,10Mbit,1Mbit
RATE=128Kbit
WEIGHT=10Kbit
PRIO=5
RULE=192.168.1.0/24
here any traffic on 192.168.0.1/24 subnet will be restricted to 128kbit on eth0. there doesn't need to be a physical "pipeline" to throttle, as it's done at a totally different osi layer.
 
Old 10-10-2004, 05:55 AM   #3
johnsto
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the info!

So, if I setup the remaining PCs to use this one as their gateway, I could then use cbq to prioritise web access and throttle back P2P usage?
 
  


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
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Traffic Shaping jrmann1999 Linux - Networking 3 10-23-2008 12:43 PM
Traffic shaping shy Linux - Networking 2 11-30-2004 09:51 AM
Traffic Shaping nemesisza Linux - Networking 1 03-21-2004 05:52 PM
Traffic Shaping ?? DocKane Linux - Networking 2 08-24-2001 09:32 AM

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

All times are GMT -5. The time now is 04:07 PM.

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