[Fwd: Re: [LARTC] Simple HTB setup with tcng]
lartc@manchotnetworks.net
lartc@manchotnetworks.net
Wed, 05 May 2004 18:27:40 +0200
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