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地址

猜你喜欢

转载自www.cnblogs.com/canglongdao/p/11981522.html