All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Whats wrong with my script?
@ 2004-01-27 13:41 Gastón
  2004-01-29 13:05 ` andybr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Gastón @ 2004-01-27 13:41 UTC (permalink / raw)
  To: lartc

I`m trying to shape both upload (eth0) and download(eth1). I made this
script to acomplishthis but the filters are not working even though the
classes and qdiscs are created. What am I doing wrong? #!/bin/bash


tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 htb default 10 r2q 5

tc qdisc del dev eth1 root
tc qdisc add dev eth1 root handle 1 htb default 10 r2q 5

tc class add dev eth0 parent 1: classid 1:2 htb rate 5Mbit burst 15k

tc class add dev eth0 parent 1:2 classid 1:59 htb rate 64Kbit ceil 64Kbit
tc qdisc add dev eth0 parent 1:59 handle 59 sfq perturb 10
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src
192.168.0.50 classid 1:59

tc class add dev eth1 parent 1: classid 1:2 htb rate 5Mbit burst 15k

tc class add dev eth1 parent 1:2 classid 1:56 htb rate 64Kbit ceil 64Kbit
tc qdisc add dev eth1 parent 1:56 handle 56 sfq perturb 10
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
192.168.0.50 classid 1:56


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

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

end of thread, other threads:[~2004-02-01 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-27 13:41 [LARTC] Whats wrong with my script? Gastón
2004-01-29 13:05 ` andybr
2004-01-29 20:19 ` Gastón
2004-01-30  7:16 ` [LARTC] " Damion de Soto
2004-01-30 12:33 ` Gastón
2004-01-30 14:23 ` Anderson O Muniz
2004-02-01 23:09 ` [LARTC] " Damion de Soto

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.