[FUGSPBR] Dúvida Limitacao de Banda
Marco Aurélio V. da Silva
marco em prodatanet.com.br
Qui Nov 11 11:04:40 BRST 2004
Show do Pipe 57
brideii# ipfw pipe 57 show
00057: 128.000 Kbit/s 0 ms 10 sl. 0 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
q00001: weight 5 pipe 57 50 sl. 0 queues (64 buckets) droptail
mask: 0x00 0x000000ff/0x0000 -> 0x00000000/0x0000
q00002: weight 5 pipe 58 50 sl. 5 queues (64 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
1 ip 0.0.0.0/0 0.0.0.1/0 104 21330 0
0 0
2 ip 0.0.0.0/0 0.0.0.2/0 109 24983 0
0 0
2 ip 0.0.0.0/0 0.0.0.2/0 1 552 0
0 0
7 ip 0.0.0.0/0 0.0.0.7/0 56888 83387360 40
57724 920
7 ip 0.0.0.0/0 0.0.0.7/0 1 40 0
0 0
Show do queue 1
brideii# ipfw queue 1 show
00001: 64.000 Kbit/s 0 ms 50 sl. 1 queues (1 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
0 udp 200.216.209.163/137 200.216.209.3/53 12754 3265932 0
0 0
q00001: weight 5 pipe 57 50 sl. 0 queues (64 buckets) droptail
mask: 0x00 0x000000ff/0x0000 -> 0x00000000/0x0000
q00002: weight 5 pipe 58 50 sl. 5 queues (64 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
1 ip 0.0.0.0/0 0.0.0.1/0 152 65985 0
0 0
2 ip 0.0.0.0/0 0.0.0.2/0 109 24983 0
0 0
2 ip 0.0.0.0/0 0.0.0.2/0 1 552 0
0 0
7 ip 0.0.0.0/0 0.0.0.7/0 58271 85439659 48
72000 937
7 ip 0.0.0.0/0 0.0.0.7/0 1 1500 0
0 0
T+
Marco Aurélio V. da Silva
marco em prodatanet.com.br
Prodata Inf. e Cadastro Ltda.
----- Original Message -----
From: "Patrick Tracanelli" <eksffa em freebsdbrasil.com.br>
To: <fugspbr em fugspbr.org>
Sent: Thursday, November 11, 2004 12:23 PM
Subject: Re: [FUGSPBR] Dúvida Limitacao de Banda
> Marco Aurélio V. da Silva wrote:
> > Caro Patrick,
> >
> > Utilizei as seguintes regras:
> >
> > echo "Limitando a classe de ip frio em 128Kbps..."
> > /sbin/ipfw add queue 1 ip from 128.128.1.0/24 to any out via rl0
> > /sbin/ipfw add queue 2 ip from any to 128.128.1.0/24 in via rl0
> >
> > /sbin/ipfw queue 1 config weight 5 pipe 57 mask src-ip 0x000000ff
> > /sbin/ipfw queue 2 config weight 5 pipe 58 mask dst-ip 0x000000ff
> > /sbin/ipfw pipe 57 config bw 128Kbit/s queue 10
> > /sbin/ipfw pipe 58 config bw 128Kbit/s queue 10
> >
> >
> > e quando eu dou um:
> >
> > ipfw pipe 57 show -> ele mostra 128 Kbit/s
> >
> > ipfw queue 1 show -> ele mostra 64 Kbit/s
> >
> > é isto mesmo ?
>
> O queue teria que mostrar apenas em que pipe está associado, +/-
assim
>
> 00990: 128.000 Kbit/s 0 ms 50 sl. 0 queues (1 buckets) droptail
> mask: 0x00 0x00000000/0x0000 -> 0x00000000/0x0000
> q00045: weight 5 pipe 45 50 sl. 0 queues (64 buckets) droptail
> mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000
> q00046: weight 5 pipe 46 50 sl. 0 queues (64 buckets) droptail
> mask: 0x00 0x000000ff/0x0000 -> 0x00000000/0x0000
> q00051: weight 5 pipe 51 50 sl. 65 queues (64 buckets) droptail
> mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000
>
>
> --
> Atenciosamente,
>
> Patrick Tracanelli
>
> FreeBSD Brasil LTDA.
> The FreeBSD pt_BR Documentation Project
> http://www.freebsdbrasil.com.br
> patrick @ freebsdbrasil.com.br
> "Long live Hanin Elias, Kim Deal!"
>
> _______________________________________________________________
> Para enviar um novo email para a lista: fugspbr em fugspbr.org
> Sair da Lista: http://lists.fugspbr.org/listinfo.cgi
> Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.792 / Virus Database: 536 - Release Date: 09/11/04
_______________________________________________________________
Para enviar um novo email para a lista: fugspbr em fugspbr.org
Sair da Lista: http://lists.fugspbr.org/listinfo.cgi
Historico: http://www4.fugspbr.org/lista/html/FUG-BR/
Mais detalhes sobre a lista de discussão freebsd