CBQ - Erro no start

1. CBQ - Erro no start

Maikon Damião Abati
mda_deb

(usa Debian)

Enviado em 05/08/2010 - 15:42h

Olá Pessoal,

Estou tendo um problema quando inicio o CBQ, realizari todas as configurações necessárias dentre regras e permissões e quando faço o "start" recebo a seguinte mensagem:

---->> COMPILE
firewall:/etc/sysconfig/cbq# bash cbq.init compile
find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.

/sbin/tc qdisc del dev eth1 root
/sbin/tc qdisc add dev eth1 root handle 1 cbq bandwidth 100Mbit avpkt 1000 cell 8
/sbin/tc class change dev eth1 root cbq weight 10Mbit allot 1514

/sbin/tc qdisc del dev eth2 root
/sbin/tc qdisc add dev eth2 root handle 1 cbq bandwidth 100Mbit avpkt 1000 cell 8
/sbin/tc class change dev eth2 root cbq weight 10Mbit allot 1514

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

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

/sbin/tc class add dev eth2 parent 1: classid 1:4 cbq bandwidth 100Mbit rate 64Kbit weight 6Kbit prio 0 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded isolated
/sbin/tc qdisc add dev eth2 parent 1:4 handle 4 tbf rate 64Kbit buffer 10Kb/8 limit 15Kb mtu 1500
/sbin/tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst 192.168.1.0/24 classid 1:4

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

---->> START
firewall:/etc/sysconfig/cbq# bash cbq.init start
cbq.init: line 717: cbq.init: command not found
**CBQ: failed to compile CBQ configuration!
firewall:/etc/sysconfig/cbq#

O que pode ser o erro...

"cbq.init: line 717: cbq.init: command not found
**CBQ: failed to compile CBQ configuration!"

???

Veja a linha 717...

line 715> ### compile the config if the cache is invalid
line 716> if [ $VALID -ne 1 ]; then
line 717> $0 compile > $CBQ_CACHE ||
line 718> cbq_fail_off "failed to compile CBQ configuration!"
line 719> fi

O $CBQ_CACHE aponta para o arquivo "CBQ_CACHE=${CBQ_CACHE:-/var/cache/cbq.init}", o arquivo está em branco.

Como podem ver a cima, utilizo o cbq.init do diretório: "/etc/sysconfig/cbq"

Alguma sugestão?

[]s

Maikon.




  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts