最近重新安装cent-os64的镜像文件,查看虚拟机Ip地址时提示command not found,需安装net-tools工具
运行:yum install net-tools命令报错:

解决办法:
查看网卡:ip addr

编辑网卡文件:

将ONBOOT=no,改为yes,并保存

重启网络:

再次安装:
yum install net-tools
安装过程中输入y
安装成功后,再次输入ifconfig命令即可正常使用

参考:
最近重新安装cent-os64的镜像文件,查看虚拟机Ip地址时提示command not found,需安装net-tools工具
运行:yum install net-tools命令报错:
查看网卡:ip addr
编辑网卡文件:
将ONBOOT=no,改为yes,并保存
重启网络:
再次安装:
yum install net-tools
安装过程中输入y
安装成功后,再次输入ifconfig命令即可正常使用
参考: