How about this setup? Please help!

Linux Advanced Routing and Traffic Control

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

 



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

I have an ADSL connection with the following specs:
Down: 8 Mbit :-))
Up: 512 kbps

What I want to do is the following:

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?

TIA

Martijn
_______________________________________________
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