Home > Article > Operation and Maintenance > How to solve the problem that ifconfig cannot be used in CentOS7 system
How to solve the problem that ifconfig cannot be used in CentOS7 system?
In the CentOS 7 system, you generally use "ip addr" to view the network card configuration information. Of course, you can also use ifconfig to achieve the same effect. However, not all CentOS 7 systems can use the ifconfig command during initial settings, as follows:
[root@sqj ~]# ifconfig -bash: /usr/sbin/ifconfig: No such file or directory
If the above prompt message appears, it means that the CentOS 7 system cannot use the ifconfig command, so how can I help? You can install network tools here to use this command normally:
#yum search ifconfig
In this way, you can view the installation package required for the ifconfig command "net-tools.x86_64
", then just install this software.
#yum -y install net-tools
After the installation is completed, you can use the ifconfig command to view IP information normally.
Through the above steps, the CentOS7 system can use the ifconfig command normally. If you are renting a RAKsmart US server and if the CentOS7 system ifconfig cannot be used, you can install the above method to solve it.
Related references: centOS tutorial
The above is the detailed content of How to solve the problem that ifconfig cannot be used in CentOS7 system. For more information, please follow other related articles on the PHP Chinese website!