Redhat 7 没有ifconfig命令的解决方法

来源:互联网 发布:鸡尾酒工具推荐 知乎 编辑:程序博客网 时间:2024/05/22 00:36

在我们新安装的Redhat 7 系统里输入ifconfig----显示没有该命令

[root@localhost ~]# ifconfig

解决方法:

查看ifconfig命令在哪个包里

[root@localhost ~]# yum search ifconfig

文件我们可以看出ifconfig在 net-tools的包里。因为我们这需要安装该包

[root@localhost ~]# yum -y install net-tools



再次输入ifconfig就可以显示网卡信息了

[root@localhost ~]# ifconfig