[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: whatmask



On Tue, 19 Apr 2011 20:57:15 +0800, Paul Wise <pabs@debian.org> uttered:
> On Tue, Apr 19, 2011 at 8:43 PM, Michael Fincham
> <michael@hotplate.co.nz> wrote:
> 
> > whatmask   - automatically calculates parameters of a subnet or
> > subnet mask
> 
> How does this compare with sipcalc, which is already in Debian?

Hey, sipcalc is neat. It almost certainly eclipses the need for this
package. Compare outputs:

mfincham@michael-desktop:~/Working/whatmask$ whatmask 192.0.2.1/24

------------------------------------------------
           TCP/IP NETWORK INFORMATION
------------------------------------------------
IP Entered = ..................: 192.0.2.1
CIDR = ........................: /24
Netmask = .....................: 255.255.255.0
Netmask (hex) = ...............: 0xffffff00
Wildcard Bits = ...............: 0.0.0.255
------------------------------------------------
Network Address = .............: 192.0.2.0
Broadcast Address = ...........: 192.0.2.255
Usable IP Addresses = .........: 254
First Usable IP Address = .....: 192.0.2.1
Last Usable IP Address = ......: 192.0.2.254

vs:

mfincham@michael-desktop:~/Working/whatmask$ sipcalc 192.0.2.1/24
-[ipv4 : 192.0.2.1/24] - 0

[CIDR]
Host address		- 192.0.2.1
Host address (decimal)	- 3221225985
Host address (hex)	- C0000201
Network address		- 192.0.2.0
Network mask		- 255.255.255.0
Network mask (bits)	- 24
Network mask (hex)	- FFFFFF00
Broadcast address	- 192.0.2.255
Cisco wildcard		- 0.0.0.255
Addresses in network	- 256
Network range		- 192.0.2.0 - 192.0.2.255
Usable range		- 192.0.2.1 - 192.0.2.254

-

> Also, does it support IPv6?

No. 

whatmask may have already reached its useful EOL, given these two
facts :)

-- 
Michael Fincham

Attachment: pgpmo5jbe53ud.pgp
Description: PGP signature


Reply to: