From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin A. Brown" Date: Wed, 28 May 2003 22:43:21 +0000 Subject: Re: [LARTC] Traffic control + NAT + HTB 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 Hi again, Ruslan, No problem at all--that's what mailing lists are for.... : Can you tell me how to make so that i will have three htb classes : ('local' - 60Mbit, 'internet' - 512Kbit, 'outgoing inet' - 128Kbit) : under root qdisc, If you trawl back through the archive some, you'll find plenty of examples. I'd recommend looking at the wondershaper, too....but here's the brief answer: classes cap (100Mbit?) 1:1 -----+----------- 1:2 (sfq qdisc) rate = ceil = 60Mbit | +----------- 1:3 (sfq qdisc) rate = ceil = 128kbit | +----------- 1:4 (sfq qdisc) rate = ceil = 512kbit You might consider making 1:2 the default class. : so that they won't borrow each other? HTB classes never borrow from each other. They only (optionally) borrow up to ceil from their parent. -Martin -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/