From: "Anderson O Muniz" Date: Fri, 30 Jan 2004 14:23:23 +0000 Subject: Re: Re:[LARTC] Whats wrong with my script? Message-Id: <003601c3e73c$a04fe370$16c8a8c0@honeyids> List-Id: References: <001301c3e4db$50143c20$cd302bc8@traza> In-Reply-To: <001301c3e4db$50143c20$cd302bc8@traza> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org If you want to set upload coming from eth0 for example: tc filter add eth0 parent 1:0 protocol ip prio 100 u32 match ip src 192.168.0.50 classid 1:56 Try and let us know if it worked. Anderson ----- Original Message ----- From: "Gast=F3n" To: "andybr" Cc: Sent: Thursday, January 29, 2004 6:19 PM Subject: Re: Re:[LARTC] Whats wrong with my script? > What about this? : tc filter add dev eth1 parent 1:0 protocol ip prio 100 > u32 match ip dst 192.168.0.50 classid 1:56 > Is this correct for shaping upload? > > ----- Original Message ----- > From: "andybr" > To: > Cc: > Sent: Thursday, January 29, 2004 10:05 AM > Subject: Re:[LARTC] Whats wrong with my script? > > > Hello, > > According with rules you are controlling only download > (src ip) you should add a (dst rule) also. Make a try. > > > []'s > Anderson > > 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 5M > bit 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 5M > bit 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: ht > tp://lartc.org/ > > > > > __________________________________________________________________________ > Acabe com aquelas janelinhas que pulam na sua tela. > AntiPop-up UOL - =C9 gr=E1tis! > http://antipopup.uol.com.br/ > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/