Re: throtling bandwidth

Linux Advanced Routing and Traffic Control

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

 



On Thu, 10 Nov 2005, Payal Rathod wrote:

PR> My branch office as got a 256Kbps b/w from their service provider at a 
PR> very very high rate per Mb. They don't require 256Kbps at all but the 
PR> ISP does not offer anything low.  Can we restrict the bandwith to say 
PR> 64Kbps nothing fancy? How do I go about it? 

Payal,

	I've had success limiting bandwidth on interfaces for our wireless 
networks. Patrons are coming in with P2P applications that hog the whole pipe if 
you let them. For us, these intefaces are on a firewall with two network cards 
and these statements did the trick limiting traffic to 256K coming and going:

tc qdisc delete dev eth0 root
tc qdisc add dev eth0 root tbf limit 5kb burst 5kb rate 256kbit

tc qdisc delete dev eth1 root
tc qdisc add dev eth1 root tbf limit 5kb burst 5kb rate 256kbit

	You have to at least have iproute2 (or in my case, becuase we use Debian 
"iproute") installed so the "tc" command is recognized.
	Hope this is useful!

-- 
********************************************************************
Brett Charbeneau
Network Administrator         
Williamsburg Regional Library                   
7770 Croaker Road                               
Williamsburg, VA 23188-7064                     
(757)259-4044          www.wrl.org
(757)259-4079 (fax)    brett@xxxxxxx
********************************************************************


_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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