步骤一:cd /etc/sysconfig/network-scripts/ 

步骤二:ls

centos 7 minimal connect: Network is unreachable和ifconfig command not found

如图,编辑en开头的配置文件,需要sudo权限。

步骤三:vi ifcfg-ens33 打开将ONBOOT=no,改为ONBOOT=yes     //en开头后面的不唯一,只要en开头就行

centos 7 minimal connect: Network is unreachable和ifconfig command not found

步骤四:重启网络 service network restart

ifconfig只需要安装即可:sudo yum -y install net-tools

相关文章: