[GTER] IPv4 Brasileiro

Cleber Martim de Alexandre cleber at registro.br
Thu Feb 24 13:04:06 -03 2011


Tente esse:

grep "BR|ipv4" delegated-lacnic-latest | awk -F "|" '{ x = 1; i = 32; while (x != $5) { x = x*2; i--; }; print $4 "/" i}' > Brasil.txt

Cleber

On Thu, Feb 24, 2011 at 11:34:40AM -0300, Felipe Nogueira wrote:
> Otimo eu agradeço, mas nesse formato ele não mostra a mascara, somente o
> numero de hosts, alguém sabe como calcular transformando a mascara ou tem
> algum script pronto?
> 
> 
> 
> Em 24 de fevereiro de 2011 10:46, Cleber Martim de Alexandre <
> cleber at registro.br> escreveu:
> 
> > Felipe,
> >
> > A informação sobre os blocos  alocados a empresas brasileiras pode ser
> > obtida no seguinte arquivo:
> >
> > ftp://ftp.lacnic.net/pub/stats/lacnic/delegated-lacnic-latest
> >
> > Cleber
> >
> > On Thu, Feb 24, 2011 at 10:26:57AM -0300, Felipe Nogueira wrote:
> > > Caros,
> > >
> > > Preciso de um favor, alguem tem a lista dos blocos de ip brasileiro?
> > >
> > > Preciso fazer uma regra de firewall e estou tendo dificuldade em
> > encontrar.
> > >
> > > Grato,
> > >
> > > --
> > > Felipe N. Oliva
> > > --
> > > gter list    https://eng.registro.br/mailman/listinfo/gter
> >
> 
> 
> 
> -- 
> Felipe N. Oliva
> --
> gter list    https://eng.registro.br/mailman/listinfo/gter



More information about the gter mailing list