Get the App
SLTechnology News&Howtos  ›  Servers  › 

What if the ifconfig command for CentOS7 doesn't work?

Shulou Source: shulou.com Published: 2022-06-03 06:11:31 10月28日 Update

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!

Tags: Commands files more questions what to do easy to do easy to do content methods that is articles methods friends networks web services industry information software packages help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple NVidia vpn MariaDB Linux