How To

How To Install ifconfig on Ubuntu 20.04 (Focal Fossa)

I discovered that Ubuntu 20.04 (Focal Fossa) Server edition doesn’t have ifconfig command pre-installed. How then can you install ifconfig on Ubuntu 20.04 (Focal Fossa)?. if you get a message ifconfig: not found on Ubuntu, it means the command is not installed. ifconfig is a command line interface tool for network interface configuration.

Original content from computingforgeeks.com - post 53015

The ifconfig command is deprecated and the ip command is now favored to provide similar functionality. See our guide on ip command usage:

ip vs ifconfig command cheat sheet

Install ifconfig on Ubuntu 20.04 (Focal Fossa)

To ensure the ifconfig command is available on your Ubuntu 20.04 (Focal Fossa) machine. Run the command:

sudo apt update
sudo apt install net-tools

The net-tools package will install ifconfig on Ubuntu 20.04 (Focal Fossa). After installation, you can try invoke ifconfig in the terminal.

$ 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::f816:3eff:fed8:1d14  prefixlen 64  scopeid 0x20<link>
        ether fa:16:3e:d8:1d:14  txqueuelen 1000  (Ethernet)
        RX packets 235355  bytes 512200432 (512.2 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 57226  bytes 5382029 (5.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  txqueuelen 1000  (Local Loopback)
        RX packets 1364  bytes 109906 (109.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1364  bytes 109906 (109.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

The output confirms we have fixed the ifconfig: not found on Ubuntu 20.04 Linux system.

install ifconfig ubuntu

For ifconfig usage, refer to the guide below.

ip vs ifconfig command cheat sheet

Here are more Ubuntu articles:

Install Node.js 14 on Ubuntu / Debian / Linux Mint

Install Chromium Browser on Ubuntu

How To Install TeamViewer on Ubuntu

How To Install Java 14 on Ubuntu / Debian

Related Articles

Debian How To Install PHP with Apache on Ubuntu and Debian Networking Install Pritunl VPN Server on Ubuntu 24.04 / 22.04 Containers Install Harbor Image Registry on Ubuntu 22.04|20.04 Ubuntu Install Mautic Marketing Software on Ubuntu 22.04|20.04|18.04

Leave a Comment

Press ESC to close