<div>Ola a tds,</div> <div> </div> <div>Eu montei este script para controlar banda:</div> <div>#! /bin/sh<BR>tc class add dev eth2 root classid 1:0 htb rate 128 kbps default 30<BR>tc class add dev eth2 parent 1:0 classid 1:10 htb rate 96kbps ceil 128kbps<BR>tc class add dev eth2 parent 1:0 classid 1:20 htb rate 128kbps ceil 128kbps<BR>tc class add dev eth2 parent 1:0 classid 1:30 htb rate 32kbps<BR>tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 80 0xffff flowid 1:10<BR>tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 8080 0xfff flowid 1:10<BR>tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 3128 0xfff flowid 1:10<BR>tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 22 0xfff flowid 1:20<BR>tc filter add dev eth2 parent 1:0 protocol ip u32 match ip flowid 1:30</div> <div> </div> <div>E quando eu executo ele aparece o seguinte erro:</div> <div> </div> <div>[root@servweb teste]#
./controlebanda.sh<BR>What is "kbps"?<BR>Usage: ... qdisc add ... htb [default N] [r2q N]<BR> default minor id of class to which unclassified packets are sent {0}<BR> r2q DRR quantums are computed as rate in Bps/r2q {10}<BR> debug string of 16 numbers each 0-3 {0}</div> <div>... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]<BR> [prio P] [slot S] [pslot PS]<BR> [ceil R2] [cburst B2] [mtu MTU] [quantum Q]<BR> rate rate allocated to this class (class can still borrow)<BR> burst max bytes burst which can be accumulated during idle period {computed}<BR> mpu minimum !
packet
size used in rate computations<BR> overhead per-packet size overhead used in rate computations<BR> ceil definite upper class rate (no borrows) {rate}<BR> cburst burst but for ceil {computed}<BR> mtu max packet size we create rate map for {1600}<BR> prio priority of leaf; lower are served first {0}<BR> quantum how much bytes to serve from leaf at once {use r2q}</div> <div>TC HTB version 3.3<BR>RTNETLINK answers: File exists<BR>RTNETLINK answers: File exists<BR>Illegal "match"<BR>[root@servweb teste]#</div> <div> </div> <div>Alguem sabe como eu resolvo este erro?</div> <div> </div> <div>Grato</div><BR><BR><DIV>
<DIV>
<DIV><FONT face="comic sans ms" color=#00007f><STRONG>+-------------------------------------------------------+</STRONG></FONT></DIV>
<DIV><FONT color=#00007f><FONT face="comic sans ms">| <STRONG>Pedro H. A. Neto</STRONG> <BR>| Analista de Tecnologia da Informatica<BR>| <STRONG>MSN</STRONG> pedrohaneto@hotmail.com <BR>| <STRONG>UIN</STRONG> 196.039.600 <BR>| <STRONG>Orkut</STRONG> </FONT><A href="http://www.orkut.com/Home.aspx?xid=2023086171787910905"><FONT face="comic sans ms">http://www.orkut.com/Home.aspx?xid=2023086171787910905</FONT></A><FONT face="comic sans ms"> <BR><STRONG>+-------------------------------------------------------+</STRONG></FONT></FONT></DIV></DIV></DIV><p>
<hr size=1> ____________________________________________________
<hr size=1>
<a href="http://us.rd.yahoo.com/mail/br/tagline/messenger/*http://br.messenger.yahoo.com/whatsnew.php">Yahoo! Messenger com voz</a> - Instale agora e faça ligações de graça.