From: "lartc@manchotnetworks.net" Date: Wed, 05 May 2004 16:27:40 +0000 Subject: Re: [Fwd: Re: [LARTC] Simple HTB setup with tcng] Message-Id: <1083774460.2300.43.camel@drs0> List-Id: References: <1083758088.7826.36.camel@cmo> In-Reply-To: <1083758088.7826.36.camel@cmo> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org hi clemment, On Wed, 2004-05-05 at 13:54, Clement MOREAU wrote: > Thank you for your help. > > It generates this script : > > > > tc qdisc add dev eth0 handle 1:0 root htb default 2 -----------------------------------^^^^-^^^ > tc class add dev eth0 parent 1:0 classid 1:1 htb rate 75000bps ceil \ > 75000bps > tc class add dev eth0 parent 1:0 classid 1:2 htb rate 125000bps > tc filter add dev eth0 parent 1:0 protocol all prio 1 u32 match u32 \ > 0xa000001 0xffffffff at 12 classid 1:1 > > > But I thought it was necessary to have a "root" htb class on the top of > the hierarchy to get it working as expected. Is that true ? yes and it does -- all packets matching the u32 filter (in this case 10.0.0.1) will go to the 1:1 class and be limited to the 75 kilobytes per second. cheers charles _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/