[134113] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Throttle traffic for a single local IP on a Linux router?

daemon@ATHENA.MIT.EDU (Jeffrey Lyon)
Fri Dec 24 05:52:40 2010

In-Reply-To: <AANLkTi=5WTQRQ47bKiA0dKbwjHHdUn0z9WzG26+BssR=@mail.gmail.com>
Date: Fri, 24 Dec 2010 05:52:35 -0500
From: Jeffrey Lyon <jeffrey.lyon@blacklotus.net>
To: gordslater@ieee.org
Cc: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

Try a Linksys RV016, it has some decent traffic shaping tools for larger
home and small business networks.

Jeff

On Dec 24, 2010 5:31 AM, "gordon b slater" <gordslater@ieee.org> wrote:

On Thu, 2010-12-23 at 18:32 -0500, johnc@hush.ai wrote:
> $TC class add dev $INIF parent 1: classid ...
yes, I think you have the same IDs in the last 4 lines.

classid's should be 1:1 and 1:2
flowid's shoild be 1:1 and 1:2

yours are 1:1 in both cases of each



try :-



$TC class add dev $INIF parent 1: classid 1:1 htb rate $DNLD ceil
$DNLD
$TC class add dev $OUTIF parent 1: classid 1:2 htb rate $UPLD ceil

$UPLD
# ^^^
$TC filter add dev $INIF parent 1:0 ip pref 1 ...
$IP/32 0xFFFFFFFF flowid 1:2
#                        ^^^
(line breaks may be affected by email formatting etc )


Gord


--
# ~ TC , the undisputable leader of the gang ~ #

home help back first fref pref prev next nref lref last post