From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Thu, 12 Jun 2003 21:15:09 +0000 Subject: Re: [LARTC] htb problem Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Thursday 12 June 2003 23:08, Esteban wrote: > my set up is like this: > > #!/bin/bash > DEV=eth1 > > tc qdisc del dev $DEV root 2> /dev/null > /dev/null > tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null > > tc qdisc add dev $DEV root handle 1: htb > > tc class add dev $DEV parent 1: classid 1:1 htb rate 512kbit burst 6k > tc class add dev $DEV parent 1:1 classid 1:10 htb rate 512kbit burst 6k > prio 1 tc class add dev $DEV parent 1:1 classid 1:20 htb rate 50kbit burst > 6k prio 3 > > tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 > tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 > > tc filter add dev $DEV protocol ip parent 1:0 prio 1 handle 0x1 fw flowid > 1:20 > > > iptables -t mangle -A FORWARD -i eth1 -j MARK --set-mark 1 > > os?? any idea? Remove burst and prio parameter from your commands. And make sure the sum of child rates <= parent rate. In your case 512 + 50 >> 512. And all non-classified packets have to go somewhere. This can be done with the default parameter if you add the htb root disc or a catch all filter rule. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/