CentOS7 提示ifconfig:command not found

今天再次装完CentOS7虚拟机后,居然提示ifconfig:command not found.



原本是以为没有将IP地址设置成开机启动,结果设置完开机启动后,仍然提示



后在网上查找方法,记录一下

  • 进入/sbin
  • 查看ifconfig



    发现ifcofig不存在

  • 安装net-tools



    提示确认输入y回车,直至安装完毕


  • 确认,输入ifconfig


你可能感兴趣的:(CentOS7 提示ifconfig:command not found)