Re: Bandwidth Allocation...

Linux Advanced Routing and Traffic Control

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

 



Hi,

I'm fairly new to this too, but if I understand correctly, you can do this with htb.


tc qdisc add dev eth0 root handle 1: htb


tc class add dev eth0 parent 1: classid 1:1 htb rate <your total bandwidth>

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 128kbit
tc class add dev eth0 parent 1:1 classid 1:11 htb rate 128kbit

tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.1 flowid 1:10
tc filter add dev eth0 parent 1:1 protocol ip prio 1 u32 \
match ip src 192.168.1.2 flowid 1:11

It is my understanding that as long as these classes don't have a leaf they will share excess bandwidth.


Anyone else want to comment?


Thanks,
Gerry


Esteban Wagner wrote:


Im configuring a server, to provide internet to 5 machines, with a dsl connection.
I m not in familiar with bandwidth shaping, so Im going to start reading about it.
What Im looking is something which let me assign the bandwidth in a dynamic way.(dynamic bandwidth allocation).
For example:
If I assign X bandwidht to each PC.(equal), and Pc1 is not using the %100 of the bandwidht assigned, I want the others PC in the network to be able to use the bandwidth PC 1 is not using.
Please let me know if this is possible.
If it is possible which HOWTO should i start reading?.And what tools do i need.
Considering I understand networks basics, and have experience on linux.
Thanks.
Wagner Esteban.




_________________________________________________________________
<http://www.incredimail.com/redir.asp?ad_id=310&lang=10> /IncrediMail/ - *El Email ha evolucionado finalmente* - *_Haga clic aquí_* <http://www.incredimail.com/redir.asp?ad_id=310&lang=10>


--
Gerry Weaver

IT-Pro Corp.

Office: (254) 883-9040
Mobile: (512) 663-9550
Fax   : (254) 883-9041

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
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