How To Fix Ifconfig Command Not Found on Ubuntu 20.04 LTS

Fix Ifconfig Command Not Found on Ubuntu 20.04

In this tutorial, we will show you how to fix Ifconfig command not found on Ubuntu 20.04 LTS. For those of you who didn’t know, Interface configuration (ifconfig) is a command-line utility tool used to configure network interfaces in Unix and Linux operating systems. It displays the details of a network interface card like IP address, MAC Address, the status of a network interface card, etc. On Ubuntu 20.04 and before, ifconfig the command by default used to ship. Whereas in minimal installed Ubuntu, I have not found ifconfig a command. This was due to “net-tools” not being installed by default. Install “net-tools” will solve the problem.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of Ifconfig an Ubuntu 20.04 (Focal Fossa). You can follow the same instructions for Ubuntu 18.04, 16.04, and any other Debian-based distribution like Linux Mint.

Prerequisites

  • A server running one of the following operating systems: Ubuntu 20.04, 18.04, 16.04, and any other Debian-based distribution like Linux Mint.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • A non-root sudo useror access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Fix Ifconfig Command Not Found on Ubuntu 20.04 LTS Focal Fossa

Step 1. First, make sure that all your system packages are up-to-date by running the following apt commands in the terminal.

sudo apt update
sudo apt upgrade

Step 2. Installing the net-tools package.

Now run the following command to install net-tools:

sudo apt install net-tools

Once installation successfully, opens your terminal and run ifconfig the command with no option, then you will see all your up interface wheater the interface has an Ip address or not:

$ ifconfig 
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1450
        inet 10.10.1.151  netmask 255.255.255.0  broadcast 10.10.1.255
        inet6 fe80::meilana:3eff:fed8:1d14  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:d8:1d:14  meilana 1000  (Ethernet)
        RX packets 235355  bytes 512200432 (512 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 57226  bytes 5382029 (8.3 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  meilana 1000  (Local Loopback)
        RX packets 1364  bytes 109906 (102.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1364  bytes 109906 (106.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Congratulations! You have successfully installed Ifconfig. Thanks for using this tutorial to fix the ifconfig: not found on your Ubuntu 20.04 LTS Focal Fossa system. For additional help or useful information, we recommend you to check the official Ifconfig website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!