jump to navigation

sipcalc The Advanced subnet calculator on Linux March 7, 2011

Posted by Tournas Dimitrios in Linux admin tools.
trackback

Sipcalc is an advanced console-based IP sub-net calculator . It can take multiple forms of input (IPv4/IPv6/interface/host-name) and output a multitude of information about a given sub-net .In it’s simplest form takes an ip-address and a subnet mask on the command line and outputs information about the subnet. Sipcalc has support for both IPv4 and IPv6 addresses.

How to install sipcalc :

On RedHat based Linux distribution like CentOs 5.x , yum can handle the installation if EPEL is on the repository list : yum install sipcalc .

Options
-a
Give all possible information about an address or interface
-c ,
--classfull-addr
Display classfull address information (IPv4)
-x ,
--classful-bitmap
Display a classfull bitmap
-i ,
--cidr-addr
Display  CIDR address information (default IPv4)
-b ,
–cidr-bitmap
Display CIDR based bitmap (IPv4)
-n ,
–subnets=xx
Display xx extra subnets , starting from the current subnet . Will display all subnets in the current /24 is xx is zero .
-d ,
–resolve
Enable name resolution .

.Let us now pretend the following scenario : We have already a class C network (192.168.5.0/24) and want to add 3 more subnet . Wat is the best IP schema ? Well let sipcalc make the calculation .

An alternative utility is ipcalc from rpmforge .

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s