inetmask command not found

In this troubleshooting guide we learn how to fix inetmask command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

inetmask: command not found

or when using sudo you get the following error message

sudo: inetmask: command not found

Solutions to inetmask: command not found

How To Fix inetmask: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu inetmask is provided by irpas package.

irpas is:

This package contains a collection of programs used for advanced network operations, testing, and debugging.

CDP and the route injectors can be useful in a production network. Several other tools are useful for security and firewall testing. Finally some tools such as netenum are useful for general admin scripting.

Like all powerful tools, it could cause great damage, so be careful.

 * cdp - Cisco discovery protocol packet sender
 * igrp - IGRP route injector
 * ass - Autonomous system scanner
 * irdp - IRDP sender
 * irdpresponder - IRDP responder
 * itrace - ICMP based traceroute
 * tctrace - TCP SYN based traceroute
 * protos - ICMP based port scanner
 * netmask - Asks for netmask via ICMP
 * file2cable - Dumps any binary file direct to ethernet
 * dfkaa - Troubleshoot devices formerly known as Ascend (Pipeline, etc)
 * netenum - Ping scanner designed for shell scripts
 * hsrp - HSRP failover tester
 * icmp_redirect - ICMP redirection system
 * timestamp - ICMP timestamp requester
 * dhcpx - DHCP server "exerciser"

To fix this problem, we can install more using the command below.

sudo apt-get -y install irpas

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install irpas.

sudo apt -y install irpas

Or if you have aptitude installed you can use the following command.

sudo aptitude install irpas

Summary

In this tutorial we learn how to fix inetmask command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.