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> On Thu, Nov 10, 2005 at 11:09:18AM -0500, Brett Charbeneau wrote:
PR> > tc qdisc delete dev eth0 root
PR> > tc qdisc add dev eth0 root tbf limit 5kb burst 5kb rate 256kbit
PR> > 
PR> > tc qdisc delete dev eth1 root
PR> > tc qdisc add dev eth1 root tbf limit 5kb burst 5kb rate 256kbit
PR> 
PR> 
PR> I have adsl (pppoe) with eth0 as my internal interface and eth1 as 
PR> external. What do I do in this case, I want to limit to 64kbps

	Does that make your pppoe interface ppp0? Try issuing an "ifconfig" 
command to see. I'm always confused about how the kernel sees a pppoe interface.
	Give this a try:

tc qdisc delete dev eth0 root
tc qdisc add dev eth0 root tbf limit 5kb burst 5kb rate 64kbps

tc qdisc delete dev eth1 root
tc qdisc add dev eth1 root tbf limit 5kb burst 5kb rate 64kbps


-- 
********************************************************************
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