1、执行查询命令
yum search ifconfig
2、根据查询结果,执行安装命令
yum install net-tools.x86_64
如下图所示:
centos7安装ifconfig
原文:https://www.cnblogs.com/javasl/p/13586098.html