Sipcalc — IP Subnet Calculator


Written by Pavs on December 26th, 2007

Sipcalc, in it’s simplest form takes an ip-address and a subnet mask on the commandline and outputs information about the subnet. Sipcalc has support for both IPv4 and IPv6 addresses. Sipcalc can take input in three forms, an ip-address/netmask, an interface or via stdin using the special character -.

Sipcalc output is divided into sections and subsections. Each section starts with the string “-[type : INPUT] - n” where type can be one of int-ipv4, ipv6, ipv4. INPUT is one input option from the commandline and n is the number of the section that this input option has produced currently displayed. Currently the only input option that produces multiple output sections is an interface with multiple addresses. A subsection starts with the string “[IDENTIFIER]“, where IDENTIFIER is an identifier for the subsection type. The subsection types are based on the used commandline options. Sections always en with the single character ‘-’ alone on a line. Worth mentioning is also that sections can include not only subsections, but also other sections, this currently only happen when the -u and -s/-S options are used. Warnings/errors etc. can also be displayed in the form -[type : message].

[ http://cs2.swfc.edu.cn/cgi-bin/dwww?type=runman&location=sipcalc/1 ]

You use sipcalc in it’s simplest form by just using sipcalc -d hostname (-d is used to enable name resolution)

2007-12-26-052141_1280x800_scrot

If you want all kind of information from a host or an interface you could use the -a flag ie, sipcalc -d -a hostname

2007-12-26-052220_1280x800_scrot

The above is a partial screenshot, it gives out more information which goes on for several pages long.





Leave a Reply

Note: Any comments are permitted only because the site owner is letting you post, and any comments will be removed for any reason at the absolute discretion of the site owner.

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word