how calculate the number of ip addresses in a range?

Michael Sierchio kudzu at tenebras.com
Thu Aug 8 15:55:46 UTC 2013


pkg_add -r ipsc

> ipsc -gch 10.80.128.0/27
Network class:            A
Network mask:             255.0.0.0
Network mask (hex):       FF000000
Network address:          10.80.128.0
Subnet bits:              19
Max subnets:              524288
Full subnet mask:         255.255.255.224
Full subnet mask (hex):   FFFFFFE0
Host bits:                5
Addresses per subnet:     32
Bit map:                  nnnnnnnn.ssssssss.ssssssss.ssshhhhh

IP address:               10.80.128.0
Hexadecimal IP address:   A508000
Host allocation range:    10.80.128.1 - 10.80.128.30
Full subnet mask:         255.255.255.224
Subnet mask:              0.255.255.224
Subnet ID:                0.80.128.0
Network ID:               10.0.0.0
Host ID:                  0.80.128.0

CIDR notation:            10.0.0.0  /27
Supernet max:             0
Cisco wildcard:           0.0.0.31
Classful network:         10.0.0.0  /8
Route/Mask:               10.0.0.0   / 255.255.255.224
Hexadecimal route/mask:   A000000    / FFFFFFE0

On Thu, Aug 8, 2013 at 8:54 AM, Mark Felder <feld at freebsd.org> wrote:
> On Thu, Aug 8, 2013, at 10:44, Jason Hellenthal wrote:
>> Try subcalc, it's in ports.
>>
>
> I always kept ipcalc installed, but it looks like there's another called
> sipcalc, too. I'll have to check these out myself and see if any have
> merits over each other.
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list