web123456

CentOS7: ifconfig command not found solution

Problem description
I installed CentOS 7 Minimal on VirtualBox. I searched the Internet for some reason. It may be that the minimum installation of CentOS 7 is missing some tools, such as ifconfig and netstat. Therefore, the solution is very simple, just install them.

  • First, let's determine if ifconfig is missing, it is in the /sbin directory
[root@localhost ~]# cd /sbin
[root@localhost sbin]# ls

Check if there isifconfig

  • NoifconfigIf installednet-tools package
[root@localhost sbin]# sudo yum install net-tools



refer to:
1. CentOS 7 ifconfig command not found solution
2. linux - ifconfig command not found - Stack Overflow