Boa tarde pessoal,

D�em uma olhada nas sa�das do meu CBQ.

 [EMAIL PROTECTED] root]# tc -d -s qdisc
qdisc cbq 1: dev eth0 rate 100Mbit cell 8b (bounded,isolated) prio
no-transmit/8 weight 10Mbit allot 1514b
level 0 ewma 5 avpkt 1000b maxidle 1us
Sent 109478 bytes 870 pkts (dropped 0, overlimits 0)
 borrowed 0 overactions 0 avgidle 77 undertime 0

[EMAIL PROTECTED] root]# cbq compile
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1 cbq bandwidth 100Mbit avpkt 1000 cell 8
tc class change dev eth0 root cbq weight 10Mbit allot 1514

tc class add dev eth0 parent 1: classid 1:2 cbq bandwidth 100Mbit rate 2Kbps
weight 1Kbps prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
isolated
tc qdisc add dev eth0 parent 1:2 handle 2 tbf rate 2Kbps buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
192.168.0.181 classid 1:2

tc class add dev eth0 parent 1: classid 1:3 cbq bandwidth 100Mbit rate 2Kbps
weight 1Kbps prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
isolated
tc qdisc add dev eth0 parent 1:3 handle 3 tbf rate 2Kbps buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src
192.168.0.181 classid 1:3

tc class add dev eth0 parent 1: classid 1:4 cbq bandwidth 100Mbit rate 2Kbps
weight 1Kbps prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
isolated
tc qdisc add dev eth0 parent 1:4 handle 4 tbf rate 2Kbps buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
216.228.115.13 classid 1:4

tc class add dev eth0 parent 1: classid 1:5 cbq bandwidth 100Mbit rate 2Kbps
weight 1Kbps prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded
isolated
tc qdisc add dev eth0 parent 1:5 handle 5 tbf rate 2Kbps buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip src
216.228.115.13 classid 1:5

[EMAIL PROTECTED] root]# cbq start

[EMAIL PROTECTED] root]# cbq stats
### eth0: queueing disciplines

qdisc cbq 1: rate 100Mbit (bounded,isolated) prio no-transmit
Sent 187562 bytes 2316 pkts (dropped 0, overlimits 0)
 borrowed 0 overactions 0 avgidle 77 undertime 0

### eth0: traffic classes

class cbq 1: root rate 100Mbit (bounded,isolated) prio no-transmit
Sent 187562 bytes 2316 pkts (dropped 0, overlimits 0)
 borrowed 0 overactions 0 avgidle 77 undertime 0

### eth0: filtering rules

filter parent 1: protocol ip pref 100 u32
filter parent 1: protocol ip pref 100 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 100 u32 fh 800::800 order 2048 key ht 800
bkt 0 flowid 1:2


Tenho regras as seguintes regras:


Nome da regra: cbq-0001.teste1 DEVICE=eth0,100Mbit,10Mbit RATE=12Kbit WEIGHT=1Kbit PRIO=5 RULE=192.128.0.1


Nome da regra: cbq-0002.teste2 DEVICE=eth0,100Mbit,10Mbit RATE=12Kbit WEIGHT=1Kbit PRIO=5 RULE=192.128.0.1,


Nome da regra: cbq-0003.teste3 DEVICE=eth0,100Mbit,10Mbit RATE=12Kbit WEIGHT=1Kbit PRIO=5 RULE=200.224.63.102


Nome da regra: cbq-0004.teste4 DEVICE=eth0,100Mbit,10Mbit RATE=12Kbit WEIGHT=1Kbit PRIO=5 RULE=200.224.63.102,



Criei estas regras porque n�o tava dando certo. A� tentei limitar todos os
IPs envolvidos no tr�fego.



Valeu a ajuda

---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br

Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html

Responder a