Date: Thu, 8 Aug 2013 11:44:37 -0400 From: Jason Hellenthal <jhellenthal@dataix.net> To: Patrick Lamaiziere <patfbsd@davenulle.org> Cc: FreeBSD Net <freebsd-net@freebsd.org>, s m <sam.gh1986@gmail.com> Subject: Re: how calculate the number of ip addresses in a range? Message-ID: <1F113410-18DE-47CF-96C1-5EE4E8BC4980@dataix.net> In-Reply-To: <20130808133055.15e53b94@davenulle.org> References: <CAA_1SgEEeyCOk%2Bi9Zp725RfQ9s0tpELXL0SSBeiN%2B60z%2BxqYUg@mail.gmail.com> <20130808133055.15e53b94@davenulle.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Try subcalc, it's in ports. -- Jason Hellenthal Inbox: jhellenthal@DataIX.net Voice: +1 (616) 953-0176 JJH48-ARIN On Aug 8, 2013, at 7:30, Patrick Lamaiziere <patfbsd@davenulle.org> wrote: > Le Thu, 8 Aug 2013 11:34:22 +0430, > s m <sam.gh1986@gmail.com> a écrit : > >> hello guys, >> >> i have a question about ip addresses. i know my question is not >> related to freebsd but i googled a lot and found nothing useful and >> don't know where i should ask my question. >> >> i want to know how can i calculate the number of ip addresses in a >> range? for example if i have 192.0.0.1 192.100.255.254 with mask 8, >> how many ip addresses are available in this range? is there any >> formula to calculate the number of ip addresses for any range? > >> i have 192.0.0.1 192.100.255.254 with mask 8 > > This doesn't mean anything ? > > There are few tools to deal with ip addresses, you can study the code : > python: IPy https://github.com/haypo/python-ipy > perl : ipcalc: /usr/ports/net-mgmt/ipcalc > ... > > Basically, an ip address is just a number. IPy associates also a > prefix length in an "IP" object. So it can represent a host or > a network which is nice. > > Regards. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" [-- Attachment #2 --] 0 *H 010 + 0 *H 90000 *H 010 UIL10U StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0 130518085048Z 140519220947Z0H10Ujhellenthal@dataix.net1%0# *H jhellenthal@dataix.net0"0 *H 0 '`TmfkܨJ5u+c'Upb`zv)&ȸXZ*VN6JvLoVoh}g pQDŽKf/tZA˳("4Ԅ˻'d2h|IBl'^v^;'e8S99ۿVm|k8_UQtC"5l!kjZ]އQGn\Bh!FTsD%pV^Eӑd¨x"9 г"f 00 U0 0U0U%0++0UڔfmVʢ$䟓0U#0Sr풜\|~5NԸQ0!U0jhellenthal@dataix.net0LU C0?0;+70*0.+"http://www.startssl.com/policy.pdf0+00' StartCom Certification Authority0This certificate was issued according to the Class 1 Validation requirements of the StartCom CA policy, reliance only for the intended purpose in compliance of the relying party obligations.06U/0-0+)'%http://crl.startssl.com/crtu1-crl.crl0+009+0-http://ocsp.startssl.com/sub/class1/client/ca0B+06http://aia.startssl.com/certs/sub.class1.client.ca.crt0#U0http://www.startssl.com/0 *H {0Ӹ,52W{Ey8b[{7 _+P"n["-,@ŽpJ-W$ݍjWA-6z( RdIZ.KzXє[K6}{s+v.Qh0PͅKhTw 0I73lz*Kv4Kkگ63;p1:ױ@)]ok>:W%XwC1þL/o8~#oP0400 *H 0}10 UIL10U StartCom Ltd.1+0)U"Secure Digital Certificate Signing1)0'U StartCom Certification Authority0 071024210155Z 171024210155Z010 UIL10U StartCom Ltd.1+0)U"Secure Digital Certificate Signing1806U/StartCom Class 1 Primary Intermediate Client CA0"0 *H 0 -).2AUGo#G B|NDRpM-B=o-we5JQpa>O.#._<V [~**pz~3WG .ᘟMlr[<Ce6fqO"uxfWN#uicgkv$Lb%y`_{`xK'GN 00U00U0USr풜\|~5NԸQ0U#0N@[i04hCA0f+Z0X0'+0http://ocsp.startssl.com/ca0-+0!http://www.startssl.com/sfsca.crt0[UT0R0'%#!http://www.startssl.com/sfsca.crl0'%#!http://crl.startssl.com/sfsca.crl0U y0w0u+70f0.+"http://www.startssl.com/policy.pdf04+(http://www.startssl.com/intermediate.pdf0 *H }x,\c^#wMq}>UK/^yX֏y frMIŲB61ymQҨݬZ0&
