Linux下ifconfig未找到命令

ifconfig是linux中用于显示或配置网络设备(网络接口卡)的命令。

学习过程中使用  CentOS-7-x86_64-Minimal-1708.iso  这类最小化安装CentOS等Linux发行版的时候会默认不安装ifconfig等命令

 

1、安装 net-tools

ifconfig命令来源于net-tools,net-tools工具箱包括arp, hostname, ifconfig, netstat, rarp, route, plipconfig, slattach, mii-tool and iptunnel and ipmaddr等命令。

yum install net-tools

 

 2、再次运行ifconfig检查是否安装成功

 

posted @ 2022-04-21 00:30  LuckinAaron  阅读(4080)  评论(0编辑  收藏  举报