ifconfig命令报错
ifconfig: command not found
解决
1.不能ping通,说明网卡未启用
2.修改网络配置
cd /etc/sysconfig/network-scripts
vi ifcfg-eth0 #文件名可能不一样
3.重启网卡
service network restart
此时ifconfig命令还不能用,证明没有安装ifconfig相关的工具
4.安装ifconfig命令
查看提供ifconfig命令的工具包
yum provides ifconfig
安装ifconfig
yum install net-tools