LARTC
[Top] [All Lists]

Re: [LARTC] HTB? (NEWBIE)

To: Simone84bo <simone84bo@email.it>
Subject: Re: [LARTC] HTB? (NEWBIE)
From: "Jordi Segues" <jordisd@gmail.com>
Date: Sat, 20 Jan 2007 00:38:13 +0100
Cc: lartc@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QVz7lJbrEZUhSOwOjsdMa9z3EFGExRndzRUo/HhlKc9jhoV8DohZQN3sU2B4NOaQetboQAYjn/nU8a4soq6i5no4QFaGad+YAdQXdOh4RIxbtKW9A0H7Y0Gtz2VqnCD6YnlG/Yt3Vy3cujT19jcTaCWCWVeSMtrVUlcg3uvfc8Q=
In-reply-to: <01585ec188c0b5cce2d81d492b5930e2@85.18.136.107>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <01585ec188c0b5cce2d81d492b5930e2@85.18.136.107>
Sender: lartc-bounces@mailman.ds9a.nl
You should propably try:
tc qdisc add dev eth0 root handle 1: htb default 20
and not 30 cause your default class is 20 no?

On 1/20/07, Simone84bo <simone84bo@email.it> wrote:
Hi to all
I am studying HTB on LARTC how to. I realize a simple configuration on
router:
tc qdisc add dev eth0 root handle 1: htb default 30
tc class add dev eth0 parent 1: classid 1:1 htb rate 3mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 2mbit burst 15k
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 1mbit burst 15k
tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10
tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10
tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dport 80
0xffff flowid 1:10

After this configuration I make a ssh connection between client and server.
How the guide say I expect to see on router (with command tc -s qdisc ls dev
eth0) that unclassified traffic, like ssh, get rounded to 20: but it doesn't
happen. The count of ssh traffic packet result only on root qdisc. Why?
A second question if i want to limited rate of all my router which
configuration can i realize?

Thanks
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f

 Sponsor:
 Problemi di Liquidità? Con Logos Finanziaria 30.000 € in 24 ore a
dipendenti e lavoratori autonomi con rimborsi fino a 120 mesi, clicca qui

 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2911&d=20070120


_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc



--
Jordi Segués Daina
-------------------------------------------------------
Andorra GSM: (+376) 35 35 68
France GSM: (+33) (0)6 81 88 35 55
E-m@il / MSN: jordisd@gmail.com
AIM: superjordix
Skype: callto://superjordix
-------------------------------------------------------
http://www.JordiX.com
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>