[GTER] RES: RES: Controle de banda variável

Lucio de Aquino Marinho aquino em ecosistemas.com.br
Quarta Maio 9 15:51:40 BRT 2007


Se voce usa o Linux , pode tentar o prometheus   --> 
http://www.arachne.cz/index.php?clanekid=216

  Voce consegue controlar isso facilmente

 

# use TABs to separate IP address, hostname, and speed definition!
# this file is just dummy example not related to prometheus.conf.SAMPLE
# see sample-configuration/hosts to learn more about what Prometheus QoS 
can handle

# syntax: "via-prometheus-MIN-MAX", where MIN and MAX are values in kbps
#         "sharing-HOSTNAME" is useful to aggregate more IPs in single 
traffic class

# note, that keywords parsed by Prometheus QoS look like ordinary 
comments to tools
# used to process bsd-style /etc/hosts file...

192.168.0.0    mynetwork    #(just internal info - network name)
192.168.0.1    myrouter    #(just internal info - internal interface of 
my router)
192.168.0.2    mypc        #via-prometheus-512-1024
192.168.0.3    mynotebook    #sharing-mypc
192.168.0.9    thatrouter    #sharing-mypc

192.168.1.0    thatnetwork    #(just internal info - the other network name)
192.168.1.1    someroutername    #(the other eth on the other router)
192.168.1.2    thatpc1        #via-prometheus-256-1024
192.168.1.3    thatpc2        #sharing-thatpc1
192.168.1.4    thatpc3        #via-prometheus-128-256
192.168.1.5    thatpc4        #adsl-prometheus-64-512



Lucio
# etc., etc. whatever you want
# this configuration was never really tested, unlike brevnov-hosts.SAMPLE !!
# (but it should work too, of course...)


Carlos Anderson Jardim escreveu:
> Salve Renato... :D
>
> Realmente o que me faltou foi o queue.. :D agora ja sabendo como 
> funciona fica muiiiitttooo mais facil utilizar.
>
> Muito obrigado pela resposta :D
>
> Um fraterno abraco.
>
>
> --------------------------------
> Carlos Anderson Jardim
> Tecnologia da Informacao - Redes e Internet
> Santa Casa de São José dos Campos
> Linux User #403727
> FUG-BR User #381
> Tel.: (12) 3925-1873 - 3925-1925
>
> Renato Frederick escreveu:
>   
>> Carlos:
>>
>> #CONFIGURA O PIPE 1 COM O TAMANHO DO LINK
>> ipfw pipe 1 config bw 512Kbit/s
>> #DA PESO 10 AO TRAFEGO DO QUEUE 10, DIRECIONANDO AO PIPE 1
>> ipfw queue 10 config weight 10 pipe 1
>> #DA PESO 5 AO TRAFEGO DO QUEUE 20, DIRECIONANDO AO PIPE 1
>> ipfw queue 20 config weight 5 pipe 1
>>
>> #DIRECIONA AO QUEUE 10 O TRAFEGO DE IP "VIP"
>> ipfw add queue 10 ip from { 192.168.0.10 or 192.168.0.20 or 192.168.0.30 }
>> to any 
>> #DIRECIONA AO QUEUE 20 O RESTO DO TRAFEGO
>> ipfw add queue 20 ip from any to any
>>
>>
>> Este exemplo daria preferência aos IP 192.168.0.10/20/30 sobre o resto da
>> rede, para qualquer destino, sobre um link de 512K.
>>
>>
>>     
>>> Ola Renato,
>>>
>>> Eu uso pipes mas nao tenho ideia de como utilizar pesos para hosts,
>>> voce
>>> poderia postar algum exemplo?
>>>
>>> Att.
>>>
>>> --
>>> --------------------------------
>>> Carlos Anderson Jardim
>>> Tecnologia da Informacao - Redes e Internet
>>> Santa Casa de São José dos Campos
>>> Linux User #403727
>>> FUG-BR User #381
>>> Tel.: (12) 3925-1873 - 3925-1925
>>>
>>> --
>>> gter list    https://eng.registro.br/mailman/listinfo/gter
>>>       
>> --
>> gter list    https://eng.registro.br/mailman/listinfo/gter
>>
>>
>>     
>
>
>   




More information about the gter mailing list