What if the ifconfig command for CentOS7 doesn't work?
What if the ifconfig command for CentOS7 doesn't work? In order to solve this problem, the editor summarizes this article on ifconfig command today, hoping to help more friends who want to solve this problem to find a more simple and easy way.
1 Edit the file / etc/sysconfig/network-scripts/ifcfg-ens33 and change the ONBOOT=no in the file to ONBOOT=yes:
~] # vi / etc/sysconfig/network-scripts/ifcfg-ens33
2 restart the network service:
~] # service network restart
3 use the yum provieds command to find the software package corresponding to the ifconfig command:
~] # yum provides ifconfig
4 run the following command to install net-tools
~] # yum install net-tools
These are the solutions that cannot be used by CentOS7's ifconfig command. Is there anything to gain after reading it? If you want to know more about it, you are welcome to follow the industry information!