LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Is there a way to limit bandwidth mbps on eth0? (https://www.linuxquestions.org/questions/linux-server-73/is-there-a-way-to-limit-bandwidth-mbps-on-eth0-854040/)

abefroman 01-03-2011 10:44 PM

Is there a way to limit bandwidth mbps on eth0?
 
Is there a way to limit bandwidth mbps on eth0?

CentOS.

Limit either total traffic, or by port/IP, etc.

novice06 01-04-2011 01:36 AM

It might what you are finding
http://lartc.org/manpages/tc.txt

rhoekstra 01-04-2011 01:53 AM

You can dig into traffic shaping, so yes, there is.

tc/htb (Traffic Control / Hierarchical Token Bucket would be a nice approach..

http://tldp.org/HOWTO/Traffic-Control-HOWTO/index.html would definitely be a good start.

Thought is that traffic gets tagged in iptables, either by interface, protocol or port number. After that qdisc/htb shapes the (outgoing!) bandwidth. For shaping incoming traffic (which is less logical, hence it is more complicated) you could try out ingress shaping.

A second url you could check out is http://lartc.org/howto/lartc.cookbook.ultimate-tc.html

Hope this helps?


All times are GMT -5. The time now is 12:39 AM.