Sunday, December 29, 2024
Google search engine
HomeGuest BlogsHow To Install ifconfig on Ubuntu 20.04 (Focal Fossa)

How To Install ifconfig on Ubuntu 20.04 (Focal Fossa)

.tdi_3.td-a-rec{text-align:center}.tdi_3 .td-element-style{z-index:-1}.tdi_3.td-a-rec-img{text-align:left}.tdi_3.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_3.td-a-rec-img{text-align:center}}

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.

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

.tdi_2.td-a-rec{text-align:center}.tdi_2 .td-element-style{z-index:-1}.tdi_2.td-a-rec-img{text-align:left}.tdi_2.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_2.td-a-rec-img{text-align:center}}

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

.tdi_4.td-a-rec{text-align:center}.tdi_4 .td-element-style{z-index:-1}.tdi_4.td-a-rec-img{text-align:left}.tdi_4.td-a-rec-img img{margin:0 auto 0 0}@media(max-width:767px){.tdi_4.td-a-rec-img{text-align:center}}

Dominic Rubhabha-Wardslaus
Dominic Rubhabha-Wardslaushttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Recent Comments