Solution CentOS7 system can not be used ifconfig

In use RAKsmart when the US server, if installed CentOS7 operating system , it may often use "ifconfig" command. Most ifconfig command is used to CentOS 6 release below, it is mainly used to view the network card configuration information.

But CentOS 7 system in general is the use of "ip addr" to see if the card configuration information, of course, use ifconfig can achieve the same effect. But not all CentOS 7 systems can use ifconfig command initial setup, as follows:

[root@sqj ~]# ifconfig

-bash: /usr/sbin/ifconfig: No such file or directory

Message appears above it shows CentOS 7 system is unable to use ifconfig command, then how to help it? Here you can install a network tool to achieve normal use this command:

#yum search ifconfig

This makes it possible to view the installation package "net-tools.x86_64" ifconfig command needed, then just install the software on the line.

#yum -y install net-tools

Solution CentOS7 system can not be used ifconfig

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

Solution CentOS7 system can not be used ifconfig

Through the above steps can be such that the system can be CentOS7 normal use of the ifconfig command. If everyone in the US server rental RAKsmart time, if the situation can not use ifconfig CentOS7 system appears, can be addressed installation method described above.

Guess you like

Origin www.cnblogs.com/mh-study/p/11360655.html