How to install ifconfig on Ubuntu

In this article, we will see how to install ifconfig on Ubuntu. ifconfig doesn’t come with new versions of Ubuntu versions or on Docker Ubuntu images. When we try to run ifconfig on Ubuntu machines, then we will receive below error.

How to install ifconfig on Ubuntu

Command 'ifconfig' not found, but can be installed with: sudo apt install net-tools

Install ifconfig on Ubuntu

1. Run the following command.

sudo apt install net-tools

2. Now, we can ifconfig on our Ubuntu machine.

So in this article, we have seen solution for ifconfig issue by install net-tools on Ubuntu Linux machine.