All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] tc isn't working
@ 2002-02-20 14:37 Michel Angelo da Silva Pereira
  2002-02-20 15:52 ` bert hubert
  0 siblings, 1 reply; 2+ messages in thread
From: Michel Angelo da Silva Pereira @ 2002-02-20 14:37 UTC (permalink / raw)
  To: lartc

     Hi all, I'm using this script to do some traffic control on my network.
     I wanna to limit the traffic to 64kb on my network interface that 
goes to Internet, but the script isn't working.
     When I try do to a download, the bandwidth goes to 11MB/s.
     The rule need to be added on the eth0 (outgoing traffic) or the 
eth1 (incoming traffic from internet called inside).

Bye

Internet --> eth0 Linux eth1 --> Private Network.


tc qdisc add dev eth0 root handle 100: cbq bandwidth 1Mbit avpkt 1000

tc class add dev eth0 parent 100:0 classid 100:1 cbq bandwidth 10Mbit \
rate 64Kbit allot 1514 weight 6Kbit prio 8 maxburst 8 avpkt 1000 \
bounded

tc class add dev eth0 parent 100:1 classid 100:2 cbq bandwidth 64Kbit \
rate 32Kbit allot 1513 weight 2Kbit prio 5 maxburst 8 avpkt 1000

tc class add dev eth0 parent 100:1 classid 100:3 cbq bandwidth 64Kbit \
rate 32Kbit allot 1513 weight 2Kbit prio 5 maxburst 9 avpkt 1000

tc qdisc add dev eth0 parent 100:2 sfq quantum 1514b perturb 15
tc qdisc add dev eth0 parent 100:3 sfq quantum 1514b perturb 15

tc filter add dev eth0 parent 100:0 protocol ip prio 25 u32 match ip \
dst 192.168.0.2 flowid 100:2

tc filter add dev eth0 parent 100:0 protocol ip prio 25 u32 match ip \
dst 192.168.0.1 flowid 100:3

-- 
========================Netsite Internet Provider  -  +55(0xx16) 605-4000
Security Officer
Profissional Certificado Conectiva Linux
www.netsite.com.br/kidmumu - UIN 4553082-LC 83522
========================


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

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

end of thread, other threads:[~2002-02-20 15:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-20 14:37 [LARTC] tc isn't working Michel Angelo da Silva Pereira
2002-02-20 15:52 ` bert hubert

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.