After mac with vmware installation centos7 minimize installation, ifconfig command can not find solutions

Problem Description:

    After the installation is minimized (minimal) centos7, see the IP address of the machine running the ifconfig, results error: command not found. 

Troubleshooting steps:

   1. whether the card is enabled by ping understanding:

    ping www.baidu.com

   2. to determine whether the card is enabled by entering the ip addr see if you can obtain an IP address. 

   3. / sysconfig / network-scripts / ifcfg-enoXXXXXX (ifcfg-enoXXXXXX on behalf of the card name), to see whether to open ONBOOT by cat / etc. 

Troubleshooting Conclusion

   1) can ping, it indicates that the card has enabled, and can obtain an IP address to the Internet. (If not by vi / etc / sysconfig / network-scripts / ifcfg-enp0s3, ONBOOT to yes.BOOTPROTO to the DHCP, or manually to obtain an IP address, see Network disposed centos7) Note: After modification need to restart the network card (command: service network restart)

   2) can be found through ip addr IP address obtained prove that the card is enabled. If you can not get modify the network configuration file. Note: After modification need to restart the network card (command: service network restart)

   3) / sysconfig / network-scripts / ifcfg-enp0s3 see if the card is enabled by cat / etc, if not used vi / etc / sysconfig / network-scripts / ifcfg-enp0s3 modify the network configuration file.

   Summary: Then you can determine there is no ifconfig related tools installed.

Ifconfig installation tools:

     1. Use the yum provides ifconfig see which package includes ifconfig.

    2. yum install net-tools package. 

After a successful installation, you can use ifconfig test. 

Published 107 original articles · won praise 29 · views 180 000 +

Guess you like

Origin blog.csdn.net/zhangyingchengqi/article/details/104097973