[CentOS] CBQ and/or HTB help needed
Joe Klemmer
klemmerj at webtrek.com
Wed Aug 31 02:39:00 UTC 2005
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
More information about the CentOS
mailing list