Date: Thu, 8 Aug 2013 16:46:52 -0500 From: "Matthew D. Fuller" <fullermd@over-yonder.net> To: Michael Sierchio <kudzu@tenebras.com> Cc: "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Mark Felder <feld@freebsd.org> Subject: Re: how calculate the number of ip addresses in a range? Message-ID: <20130808214652.GZ34979@over-yonder.net> In-Reply-To: <CAHu1Y715hvbFC=pTm-DGQrvzUohxoGEhCia8-e9WGVKFm=i%2B6w@mail.gmail.com> References: <CAA_1SgEEeyCOk%2Bi9Zp725RfQ9s0tpELXL0SSBeiN%2B60z%2BxqYUg@mail.gmail.com> <20130808133055.15e53b94@davenulle.org> <1F113410-18DE-47CF-96C1-5EE4E8BC4980@dataix.net> <1375977240.3930.7571559.74F89736@webmail.messagingengine.com> <CAHu1Y715hvbFC=pTm-DGQrvzUohxoGEhCia8-e9WGVKFm=i%2B6w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 08, 2013 at 08:55:38AM -0700 I heard the voice of Michael Sierchio, and lo! it spake thus: > > pkg_add -r ipsc For another, there's a "cidrcalc" program installed by devel/libcidr (full disclosure: of which I'm the author) that does similar things: % cidrcalc -bs 10.80.128.35/27 Address: 10.80.128.35 Netmask: 255.255.255.224 (/27) BinAddr: 00001010 01010000 10000000 00100011 10 80 128 35 BinMask: 11111111 11111111 11111111 11100000 255 255 255 224 Wildcard: 0.0.0.31 Network: 10.80.128.32/27 Broadcast: 10.80.128.63 Hosts: 10.80.128.33 - 10.80.128.62 NumHosts: 30 Supernet: 10.80.128.0/26 Subnets: 10.80.128.32/28 10.80.128.48/28 -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130808214652.GZ34979>