Home  >  Article  >  Operation and Maintenance  >  What to do if ifconfig cannot be found under centos7

What to do if ifconfig cannot be found under centos7

王林
王林Original
2020-03-31 10:52:365205browse

What to do if ifconfig cannot be found under centos7

Problem:

The input ifconfig prompt does not exist, as shown below:

What to do if ifconfig cannot be found under centos7

Solution:

First confirm whether it is caused by the lack of ifconfig in the environment variable

ls /sbin/ifconfig

What to do if ifconfig cannot be found under centos7

(Recommended tutorial: centos tutorial)

The above confirms that ifconfig is not installed on the system, let’s install it next.

yum install ifconfig

What to do if ifconfig cannot be found under centos7

prompts that there is no ifconfig installation package. We then use the

yum search ifconfig

command to search for ifconfig-related packages

What to do if ifconfig cannot be found under centos7

Check ifconfig matches the net-tools.x86_64 package and install net -tools.x86_64 package.

The command is as follows:              

yum install net-tools.x86_64 -y

Enter ifconfig to see the effect

What to do if ifconfig cannot be found under centos7

##Recommended related video tutorials:

linux video tutorial

The above is the detailed content of What to do if ifconfig cannot be found under centos7. 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