ifconfig command not found - Centos 7

Page content

How to Install ifconfig Command on CentOS 7

If you are using CentOS 7 and trying to use the ifconfig command but receiving a “command not found” error, it is because CentOS 7 no longer includes ifconfig by default. ifconfig has been deprecated in favor of ip command for network configuration.

Installing ip Command on CentOS 7

To install the ip command, you can use the following steps:

  1. Open a terminal window on your CentOS 7 system.
  2. Update the package repository by running the command:
    sudo yum update
    
  3. Install the ip command by running:
    sudo yum install iproute
    

After following these steps, you should now have the ip command available for network configuration on your CentOS 7 system.

Conclusion

In conclusion, if you encounter the “command not found” error while trying to use ifconfig on CentOS 7, it is because the command has been deprecated in favor of ip. By installing the ip command, you can perform network configuration tasks effectively on your CentOS 7 system.