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

当我安装完系统打算查看网卡的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

你可能感兴趣的:(Linux)