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

WJ
WJOriginal
2020-06-06 16:37:372507browse

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

How to solve the problem that ifconfig cannot be used in CentOS7 system

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

How to solve the problem that ifconfig cannot be used in CentOS7 system

After the installation is completed, you can use the ifconfig command to view IP information normally.

How to solve the problem that ifconfig cannot be used in CentOS7 system

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn