[MASOCH-L] Pergunta

Alex S. Moura alex at rnp.br
Fri Apr 29 14:42:31 BRT 2005


> On Fri, 29 Apr 2005 theo23 at terra.com.br wrote:
>
>>  Senhores,
>>
>>  Alguém conhece algum software que ao informar um range,
>>  por exemplo xxx.xxx.xxx/24 gere todos os endereços Ips em formato
>>  texto?
>
Também tem uma ferramenta chamada cidr:

Info:   RFC 1878 subnet calculator / helper
WWW:    http://geeksoul.com/robert/cidr.html

Com já com opções para listar os endereços válidos:

cidr version 2.3.2 July 17, 2001
Copyright 2000 Robert L. Lineberger
robert at geeksoul.com
http://geeksoul.com/robert/cidr.html
License: GPL

Contributors:
David A. Bandel
Iain Lea
Herman Robers

Usage:

cidr [-v]

No arguments    print this usage()
        -v      print version information

Short form:

cidr <ipaddress/prefix> [-H]

Note: Short form only supports dotted-quad ip address and
      decimal(integer) prefix.  Host list ("-H") is optional.

Long form:

cidr <-b|-q|-h|-d> <ipaddress> <-b|-q|-h|-d|-p> <mask|prefix> [-H]

long form ipaddress options:
        -b      ip address as a binary number
        -q      ip address as a dotted quad address
        -h      ip address as a hexadecimal number
        -d      ip address as a decimal number

long form mask/prefix options:
        -b      address mask as a binary number
        -q      address mask as a dotted quad
        -h      address mask as a hexadecimal number
        -d      address mask as a decimal number
        -p      address mask as a prefix
                (e.g. a prefix of 27 represents a
                mask of 255.255.255.224)

hostlist option:
        -H      print list of valid host ip's

Short form example:
        cidr 192.168.100.25/27

Long form example:
        cidr -q 192.168.30.1 -p 30 -H
        cidr -q 10.12.95.125 -q 255.255.255.224



More information about the masoch-l mailing list