Re: tc - shapping specific ports on ppp link

Linux Advanced Routing and Traffic Control

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

 



On Fri, 2012-07-06 at 16:02 -0300, Tiago wrote:
> Hello,
> I'm having some trouble to configure a proper shapping for my users.
> 
> Basically we receive pppoe connections (rp-pppoe), it activates a
> interface called pppX and I'm applying something like on my script:
> 
> Example:
>  tc qdisc add dev ppp41 root handle 1: htb default 10
>  tc class add dev ppp41 root classid 1:0 htb rate 1024kbit burst 10k
>  tc class add dev ppp41 parent 1:0 classid 1:10 htb rate 1024kbit burst 10k
>  tc class add dev ppp41 parent 1:0 classid 1:20 htb rate 512kbit

This may not be the cause of your problem, but the "rate" of all HTB
leaf classes should add up to the rate of the root. You need to use the
"ceil" parameter to set arbitrary limits on individual classes.

Andy


--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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