1 本人安装完Centos虚拟机后,网络ping不通

解决方法: 

         1     打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),把ONBOOT=no,改为ONBOOT=yes   

         2  重启网络服务       service network restart

2   虚拟机刚装好没有ifconfig命令

 解决方法:

        1   yum search ifconfig   查看该命令是在 net-tools.x86_64 包里面

         

【Centos】 虚拟机问题小结_解决方法

        2  安装net-tools.x86_64包   yum install  net-tools.x86_64