VMware 安装新的CentOS7 命令ifconfig无法使用

    今天新装了一下Vmware 安装了一个从阿里云下载下来的centos7 DVD版本的。发现很多东西都没有,比如ifconfig,ping 这些命令都用不了。所以修复了一下

一、ping 127.0.0.1 通,但是ping www.baidu.com 不通

问题原因:没有启用联网功能,启用联网功能

vi /etc/sysconfig/network-scripts/ifcfg-ens33

修改配置: ONBOOT=yes

重启网络服务: service network restart

 

二、ifconfig command not found

需要安装 net-tools 

yum update
yum -y install net-tools

 

 

参考:

 https://blog.csdn.net/xiaofanguan/article/details/107860876

posted @ 2022-03-24 15:47  寻找风口的猪  阅读(396)  评论(0编辑  收藏  举报