VMware workstation安装centos7,无ifconfig命令

一、centos7默认未启动ifconfig,vi /etc/sysconfig/network-scripts/ifcfg-ens33,改成ONBOOT=yes;

  systemctl restart network重启网络;ip addr查看ip地址

二、默认无ifconfig命令,yum install ifconfig会提示无此命令;可以使用yum search ifconfig查找,

 

 会给出提示,安装net-tools.x86_64即可;

ifconfig查看ip地址

 

posted on 2019-12-04 10:58  星空6  阅读(944)  评论(0编辑  收藏  举报

导航