Error: /usr/sbin/ifconfig: No such file or directory [SOLVED]

There are several commonly used, but deprecated, Linux networking commands, including: arp, ifconfig, iptunnel, iwconfig, nameif, netstat, and route. Here, we deal with what to do if you run across the error specific to ifconfig:/usr/sbin/ifconfig: No such file or directory.

Option #1: Use the Command ‘ip’

ip a


or

ip addr


Both display details on all network interfaces, just as ifconfig would.


Option #2: Install net-tools


As a matter of best practice we’ll update our packages:

yum -y update


Then let’s install ifconfig, which is apart of the package net-tools, and any other required packages:

yum -y install net-tools

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Information on CVE-2015-0235 (GHOST) Vulnerability for Red Hat and CentOS

A vulnerability found in the glibc library, specifically a flaw affecting the gethostbyname() and...

How to Install and Connect to PostgreSQL on CentOS 7

Step 1: Add the PostgreSQL 9.3 Repository In this case we want to install PostgreSQL 9.3...

Apache Error: No matching DirectoryIndex (index.html) found [SOLVED]

Apache Error for One General Reason This error may occur when attempting to access applications...

How to Check Your CentOS Version

The following command works with all CentOS versions. cat /etc/centos-release You should...

How to Update the glibc (GNU libc) on Fedora

Updating glibc on Fedora Linux is a very simple process. Most commonly you will use the following...

Powered by WHMCompleteSolution