Re: How about this setup? Please help!

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 03 December 2002 14:20, Koot, M. wrote:
> Hi all,
>
> I have the following setup.
>
>               192.168.1.2
>          +------+  /           +-----+
>
>          | ADSL | /            |     |          +--------+
>
> INTERNET-|Router|-eth0----eth1-|Linux|-eth0- ---| SWITCH |
>
>          |      |            / |     | \        +-+-+-+-++
>
>          +------+           /  +-----+  \         | | | |
>                     192.168.1.1      192.168.2.1  | | | |
>
>
>             [client] 192.168.2.50 (Me) -----------+ | | |
>             [client] 192.168.2.51      -------------+ | |
>             [client] 192.168.2.52      ---------------+ |
>
>
>                                        +---+            |
>             [client] 192.168.3.50 -----| H |            |
>             [client] 192.168.3.51 -----| u |   +------+ |
>             [client] 192.168.3.52 -----| b |---|Router|-+
>                                        +---+  /+------+ \
>                                              /           \
>                                        192.168.3.1   192.168.2.2
Nice ascii drawing :)

> I want to ensure that the download speed to the net 192.168.3.0,
> 192.168.2.52 and 192.168.2.51 is guaranteed at 512 kbps each.
> When there is no traffic in the 192.168.3.0 net, i want to allow
> 192.168.2.50 to take the full 8Mbit (that's me)
>
> Same for 192.168.2.52 and 192.168.2.51: When the client is not
> generating traffic it must go to 192.168.2.50.
>
> When the clients DO generate traffic, there speed must be at 512
> kbps. All the rest go to 192.168.2.50
>
> Further I want to shape the upload traffic from net 192.168.3.0,
> 192.168.2.51 and 192.168.2.52 to a max of 128 kbps.
>
> What is the best way to do that using tc?
Reading the howto on www.lartc.org and the pages on www.docum.org.
Remember, you can only manage outgoing bandwidth.  So eth1 for download and 
eth0 for upload speed.

If you use htb, the rate is the minimum bandwidth.  If you want to give all 
unused bandwidth to you, create 1 class for you with a lower prio and 1 class 
for the others.  Add 1 extra class for each PC in the LAN to the "other 
class".  Filtering can be done based on ip-address.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux