centos7最小安装完成之后ifconfig not found的解决办法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/lcr_happy/article/details/88572478

当我安装完系统打算查看网卡的ip地址时,输入ifconfig出现command not found.

百度之后发现ifconfig可以使用ip addr查看

后来我发现网卡本身没有起来,所以我执行ifup em1启动网卡。(em1就是我机子上的网卡名称)

后来再执行ip addr就看到了网卡的ip地址信息。。

如果需要使用ifconfig的命令的话,执行以下指令

yum install -y net-tools

参考:https://blog.csdn.net/qq_15127715/article/details/78566417

猜你喜欢

转载自blog.csdn.net/lcr_happy/article/details/88572478
今日推荐