AMP AMP

How To Install SubNetCalc  On Ubuntu 17.04

To install SubNetCalc on Ubuntu 17.04

Subnetcalc is a command line Subnet Address Calculator application that calculates IPV4 and IPV6 subnet addresses. It provides the information of binary value of IP, broadcast addresses, network addresses and the number of host. IIt is very simple to install SubNetCalc on Ubuntu and this article covers the same.

Installing SubNetCalc

Before you begin with the installation of SubNetCalc, make sure you add the required repo via PPA as follows.

root@linuxhelp1:~# add-apt-repository ppa:dreibh/ppa
 This is Thomas Dreibholz' s software repository. It contains the following packages:
- rsplib - The Open Source implementation of Reliable Server Pooling (RSerPool)
URL: http://tdrwww.iem.uni-due.de/dreibholz/rserpool/
- sctplib/socketapi - An userland SCTP implementation
URL: http://www.sctp.de/sctp.html
- subnetcalc - An IPv4/IPv6 subnet calculator
URL: http://www.iem.uni-due.de/~dreibh/subnetcalc/
- netperfmeter - A network performance meter for UDP, TCP, SCTP and DCCP
URL: http://www.iem.uni-due.de/~dreibh/netperfmeter/
- bibtexconv - A BibTeX entry export tool
URL: http://www.iem.uni-due.de/~dreibh/bibtexconv/
- slideshow - A XHTML/JavaScript slideshow generator 
URL: http://www.iem.uni-due.de/~dreibh/slideshow/
- fractgen - A simple fractal generator based on Qt 4.x
URL: http://www.iem.uni-due.de/~dreibh/fractalgenerator/
- rtpaudio - RTP real-time audio streaming system (" RTP Audio NextGen" )
URL: http://www.iem.uni-due.de/~dreibh/rtpaudio/
- wireshark+svn - A package of the Wireshark SVN source
URL: http://www.wireshark.org/develop.html
.
.
gpg:               imported: 1
OK


Once its done, run the following command to update the apt sources-list.

root@linuxhelp1:~# apt-get update
Get:1 http://security.ubuntu.com/ubuntu zesty-security InRelease [89.2 kB]                                    
Hit:2 http://ppa.launchpad.net/dreibh/ppa/ubuntu zesty InRelease                                                      
Hit:3 http://in.archive.ubuntu.com/ubuntu zesty InRelease                                                             
Get:4 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease [89.2 kB]                                           
Get:5 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease [89.2 kB]                                         
Fetched 268 kB in 24s (10.8 kB/s)                                                                                     
Reading package lists... Done


After updating the apt sources-list, install the package by invoking the following command.

root@linuxhelp1:~# apt-get install subnetcalc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  chrpath libcpprspserver2 librsplib2 libsctp1 rsplib-docs rsplib-fgp-cfgfiles rsplib-tools traceroute whois
Suggested packages:
  lksctp-tools
The following NEW packages will be installed:
  chrpath libcpprspserver2 librsplib2 libsctp1 rsplib-docs rsplib-fgp-cfgfiles rsplib-tools subnetcalc traceroute
  whois
0 upgraded, 10 newly installed, 0 to remove and 57 not upgraded.
Need to get 1,041 kB of archives.
After this operation, 2,228 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
.
.
Setting up rsplib-tools (3.1.4-1ubuntu1~zesty1~ppa0) ...
Processing triggers for libc-bin (2.24-9ubuntu2.2) ...

Once the package is installed, run the subnetcalc with specific ip.


FAQ
Q
How to install SubNetCalc On Ubuntu 17.04?
A
Run the following command:
# apt-get install subnetcalc
Q
What is SubNetCalc?
A
Subnetcalc is a command line Subnet Address Calculator application that calculates IPV4 and IPV6 subnet addresses. It provides the information of the binary value of IP, broadcast addresses, network addresses and the number of the host.
Q
how can I remove subnetcalc?
A
run as following command as "# apt-get remove subnetcalc".
Q
Why does the first IP Subnet Calc view Bit Mask have /31 and /32?
A
I thought I would add that for convenience instead of having to jump to the CIDR view.
Q
What is the subnet mask for my IP address?
A
The subnet mask is listed as Mask:255.255.255.0. The gateway IP in the above instance is 192.168.0.1. DNS information is most often found in a text file called resolv.conf.