From mboxrd@z Thu Jan 1 00:00:00 1970 From: Walter Haidinger Date: Thu, 17 Oct 2002 09:09:30 +0000 Subject: Re: [LARTC] why dont packets go where i want? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org On Thu, 17 Oct 2002, [iso-8859-2] Kert=E9sz Viktor wrote: > Here's my script that doesn't do what I want to do with it: > tc qdisc del dev eth1 root > tc qdisc add dev eth1 root handle 1 htb default 2 r2q 10 > > tc class add dev eth1 parent 1: classid 1:1 htb rate 300kbit > tc class add dev eth1 parent 1: classid 1:100 htb rate 300kbit > tc class add dev eth1 parent 1:100 classid 1:101 htb rate 10kbit ceil 30k= bit > tc class add dev eth1 parent 1:100 classid 1:102 htb rate 10kbit ceil 20k= bit > tc class add dev eth1 parent 1:100 classid 1:103 htb rate 10kbit ceil 15k= bit [--cut--] Since your script looks almost identical to mine, I wonder: Does your HTB setup limit traffic to the specified rates? > tc filter add dev eth1 parent 1:100 protocol ip u32 match ip sport 21 0xf= fff > flowid 1:103 You want dport instead. However, isn't HTB only for _outbound_ traffic shaping? AFAIK you need to use ingress for inbound. walter _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/