• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install SubNetCalc on Debian 9.0

1827

To install SubNetCalc on Debian 9.0

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. This tutorial explains the installation procedure of SubNetCalc on Debian 9.0.

Installation procedure

To begin with the installation procedure, run the nano command to open a configuration file named sources.list and enter the following contents in the file. Save and exit from the file.

root@debian:~# nano /etc/apt/sources.list
deb http://deb.debian.org/debian-security stable/updates main
deb-src http://deb.debian.org/debian-security stable/updates main
deb http://ftp.debian.org/debian stretch-backports main
deb-src http://ftp.debian.org/debian stretch-backports main

The required repository is added to the system. Now update the apt sources.list file by running the following command.

root@linuxhelppp:~# apt-get update
Ign:1 http://deb.debian.org/debian stable InRelease
Get:2 http://ftp.debian.org/debian stretch-backports InRelease [91.8 kB]
Hit:3 http://deb.debian.org/debian stable-updates InRelease
Get:4 http://deb.debian.org/debian-security stable/updates InRelease [62.9 kB]       
Get:5 http://ftp.debian.org/debian stretch-backports/main Sources [86.5 kB]
Get:6 http://ftp.debian.org/debian stretch-backports/main amd64 Packages [137 kB]              
Hit:7 http://deb.debian.org/debian stable Release      
Get:8 http://ftp.debian.org/debian stretch-backports/main Translation-en [71.9 kB]
Get:10 http://deb.debian.org/debian-security stable/updates/main Sources [60.9 kB]                 
Get:11 http://deb.debian.org/debian-security stable/updates/main amd64 Packages [155 kB]
Get:12 http://deb.debian.org/debian-security stable/updates/main Translation-en [70.1 kB]
Fetched 736 kB in 2s (337 kB/s)                               
Reading package lists... Done
root@linuxhelppp:~#

The target system is updated with the required repository. Install the SubNetCalc package by executing the following command.

root@linuxhelppp:~# apt-get install subnetcalc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgtkspell0 libimage-magick-perl libimage-magick-q16-perl libmagick++-6.q16-7 libpotrace0
  python-bs4 python-html5lib python-lxml python-scour python-webencodings
Use ' apt autoremove'  to remove them.
The following additional packages will be installed:
  iputils-tracepath whois
Recommended packages:
  rsplib-tools
The following NEW packages will be installed:
  iputils-tracepath subnetcalc whois
0 upgraded, 3 newly installed, 0 to remove and 33 not upgraded.
Need to get 133 kB of archives.
After this operation, 475 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
.
.
Setting up iputils-tracepath (3:20161105-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
root@linuxhelppp:~#

Now use the command “ subnetcalc” in the terminal to calculate the subnet mask for any IP Address as follows.

root@linuxhelppp:~# subnetcalc 192.168.7.228/24
Address       = 192.168.7.228
                   11000000 . 10101000 . 00000111 . 11100100
Network       = 192.168.7.0 / 24
Netmask       = 255.255.255.0
Broadcast     = 192.168.7.255
Wildcard Mask = 0.0.0.255
Hosts Bits    = 8
Max. Hosts    = 254   (2^8 - 2)
Host Range    = { 192.168.7.1 - 192.168.7.254 }
Properties    =
   - 192.168.7.228 is a HOST address in 192.168.7.0/24
   - Class C
   - Private
GeoIP Country = Unknown (??)
DNS Hostname  = linuxhelppp
root@linuxhelppp:~#

The installation procedure of SubNetCalc on Debian 9.0.

Tags:
jayce
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is Subnetcalc?

A

Subnetcalc is a command line Subnet Address Calculator application. It calculates IPV4 and IPV6 subnet addresses. It provides the information of binary value of IP, broadcast addresses, network

Q

What is a subnet calculator, and what does it do?

A

A subnet calculator is an online tool that takes a range of IP addresses, or CIDR notation, and generates a list of subnets. You can choose how many subnets you need and adjust certain ranges.

Q

Is there any other command which is like subnetcalc?

A

you can also use sipcalc command, to install use apt-get install sipcalc or yum install sipcalc.

Q

what is the required PPA for installing Subnetcalc in Ubuntu?

A

ppa:dreibh/ppa is the required PPA for installing Subnetcalc in Ubuntu

Q

Where to download the rpm package for subnetcalc?

A

Get the rpm package of subnetcalc from following link
"https://fedora.pkgs.org/28/fedora-x86_64/subnetcalc-2.4.3-5.fc28.x86_64.rpm.html"

Related Tutorials in How to install SubNetCalc on Debian 9.0

Related Tutorials in How to install SubNetCalc on Debian 9.0

How to install Gparted on Debian 9.0
How to install Gparted on Debian 9.0
Sep 13, 2017
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Installation SSL Certificate on Ubuntu/Linuxmint/Debian to Secure Apache
Sep 19, 2018
How to install and update OpenSSL on Debian 11.3
How to install and update OpenSSL on Debian 11.3
Oct 21, 2022
How to install qBittorrent on Debian 9.0
How to install qBittorrent on Debian 9.0
Sep 8, 2017
How to Install FileZilla in Debian
How to Install FileZilla in Debian
Nov 29, 2016
How to install Nmap on Debian 9.0
How to install Nmap on Debian 9.0
Sep 9, 2017
How to Install Laravel in Debian
How to Install Laravel in Debian
Dec 7, 2016
How to install Wireshark in Debian
How to install Wireshark in Debian
Mar 18, 2017

Related Forums in How to install SubNetCalc on Debian 9.0

Related Forums in How to install SubNetCalc on Debian 9.0

MariaDB
ryan class=
E: Unable to locate package mariadb-server
Sep 18, 2017
Linux
AadrikaAnshu class=
How to add timestamps to history On Any Linux Machine
Jun 18, 2019
vim
jacob class=
Change true vi-compatible editor from Debian Vim-compatible
Nov 8, 2021
debian
anandaamatya class=
RedNotebook on Debian buster
Jun 30, 2020
Ubuntu
Kirin class=
Videos Always Micro-Shutter
Mar 8, 2019
debian
luke class=
workbench for debian
May 26, 2017
debian
teddybarax class=
Softwae installation problem
Aug 24, 2020
debian
colbyvance class=
Trouble Installing Debian 10.8.0 (Gnome)
Feb 28, 2021

Related News in How to install SubNetCalc on Debian 9.0

Related News in How to install SubNetCalc on Debian 9.0

Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Debian IceDove kicks the bucket after Thunderbird revisits Debian Repositories
Feb 28, 2017
Mass update of Jessie - A better alternative to new version?
Mass update of Jessie - A better alternative to new version?
May 8, 2017
Debian 9.2 ‘Stretch’ OS is here, download distro now
Debian 9.2 ‘Stretch’ OS is here, download distro now
Oct 9, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Luk Van De Looverbosch ?
How to create a root ?

Hello,
How to create root@linuxhelp in Linux Mint 20.1 64-bit ?
Thanks in advance for your reply.
Best regards.

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.