All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Control Bandwidth
@ 2004-04-01 15:00 andybr
  2004-04-01 19:21 ` Alessandro O. Ungaro
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: andybr @ 2004-04-01 15:00 UTC (permalink / raw)
  To: lartc

Hi all,

I need a little help, i am studing htb to control user 
bandwidth (download/upload) and I made a script as 
below to test. I am testing using ttcp tool from by 
linux box to other linux (192.168.200.51).
my box <---- Linux = more than 128kbit
mybot -----> Linux = get 128kbit

But I want to control both ways, what am I missing?


script:
EXTIF=eth0
INTIF=eth1
TC=/sbin/tc
DOWN\x128
UPd
IP\x192.168.200.201
##################
#
$TC qdisc del $EXTIF root 2> /dev/null > /dev/null
#
$TC qdisc add dev $EXTIF root handle 0: htb default 1
$TC class add dev $EXTIF parent 0: classid 1 htb rate 
128Kbit ceil 128Kbit
#
$TC filter add dev $EXTIF protocol ip parent 0:0 prio 1 
u32 match ip src $IP flowid 1
$TC filter add dev $EXTIF protocol ip parent 0:0 prio 1 
u32 match ip dst $IP flowid 1

Thanks,
Anderson

 
__________________________________________________________________________
Acabe com aquelas janelinhas que pulam na sua tela.
AntiPop-up UOL - É grátis!
http://antipopup.uol.com.br/


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-04-02  8:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-01 15:00 [LARTC] Control Bandwidth andybr
2004-04-01 19:21 ` Alessandro O. Ungaro
2004-04-01 20:47 ` Roy
2004-04-02  8:26 ` Adrian Saileanu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.