CBQ and/or HTB help needed

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



Maciej ?enczykowski wrote:

> set() {
>   for i in 0; do
> #   MAX=16000kbit
> #   MAX=$[15*1024]kbit == 15360kbit < 16000 kbit
>     MAX=15mbit
>     tc qdisc del dev eth$i root
>     tc qdisc add dev eth$i root handle 1:0 htb default 1 r2q 100
>     tc class add dev eth$i parent 1:0 classid 1:1 htb rate $MAX
> #   tc class add dev eth$i parent 1:0 classid 1:1 htb \
> #     rate 15mbit burst $[1514 mtu 1514 quantum 1514
>   done
> }
> 
> show() {
>   for i in 0 1; do
>     tc -s qdisc list dev eth$i; tc -s class list dev eth$i
>   done
> }
> 
> $1

	Thanks.  Now how would I make this script limit outbound ftp to a total 
of 96K?

-- 
Boring Home Page - http://www.webtrek.com/joe
See my blog, sumo game ranks and other interesting junk


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux