您的位置 首页 linux 运维

ifconfig未找到命令(linux ifconfig用不了)

问题: ifconfig未找到命令 ubuntu ,centos7.9 

-bash: ifconfig: command not found

linux ifconfig命令不存在 , linux ifconfig命令

解决方案: 

 

我们知道 一般没有的工具,我们直接yum -y install ifconfig就可以

但是我们执行后却是这样的提示, 

No package ifconfig available.
Error: Nothing to do

所以这个ifconfig 的的工具包是不存在的,

那么它在哪里呢?

我们可以通过 yum search ifconfig  这个命令来查看:

[root@baimeidashu ~]#yum search ifconfig
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
=============================== Matched: ifconfig ===============================
net-tools.x86_64 : Basic networking tools

 

到此我们知道了他是在 net-tools 的工具包中,那么我们就直接安装 net-tools  这个就可以了

yum -y install net-tools

 

linux ifconfig看不到网卡

 

linuxifconfig看不到iplinux ifconfig设置网关linux ifconfig只有lolinux ifconfig -a

 

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章