[Fedora-users-br] Script p controlar banda
Pedro Neto
pedrohaneto em yahoo.com.br
Sáb Mar 18 19:13:16 UTC 2006
Ola a tds!
Estou tentando criar um script p controlar banda de um servidor, lembrando q tenho 3 interface de rede "eth0 recebe a net, eth1 rede interna e eth2 wlan". Minha intensao é controlar a banda da rede wlan.
OBS o link total eh de 512. Abaixo segue o resultado do meu script.
[root em servweb teste]# ./controlebanda.sh
+ tc qdisc add dev eth2 root handle 1: htb default 30
RTNETLINK answers: File exists
+ tc class add dev eth2 root classid 1:0 htb rate 128kbps
RTNETLINK answers: File exists
+ tc class add dev eth2 parent 1:0 classid 1:10 htb rate 96kbps ceil 128kbps
RTNETLINK answers: File exists
+ tc class add dev eth2 parent 1:0 classid 1:20 htb rate 128kbps ceil 128kbps
RTNETLINK answers: File exists
+ tc class add dev eth2 parent 1:0 classid 1:30 htb rate 32kbps
RTNETLINK answers: File exists
+ tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 80 0xffff flowid 1:10
+ tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 8080 0xfff flowid 1:10
+ tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 3128 0xfff flowid 1:10
+ tc filter add dev eth2 parent 1:0 protocol ip u32 match ip dport 22 0xfff flowid 1:20
+ tc filter add dev eth2 parent 1:0 protocol ip u32 match ip flowid 1:30
Illegal "match"
[root em servweb teste]#
Alguem sabe qual é o erro, ou melhor, o q eh esse "RTNETLINK answers: File exists" ?
Grato
+-------------------------------------------------------+
| Pedro H. A. Neto
| Analista de Tecnologia da Informatica
| MSN pedrohaneto em hotmail.com
| UIN 196.039.600
| Orkut http://www.orkut.com/Home.aspx?xid=2023086171787910905
+-------------------------------------------------------+
---------------------------------
Yahoo! Acesso Grátis
Internet rápida e grátis. Instale o discador agora!
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listman.redhat.com/archives/fedora-users-br/attachments/20060318/9c519585/attachment.htm>
Mais detalhes sobre a lista de discussão Fedora-users-br