Re: [LARTC] Traffic control + NAT + HTB

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux