虚拟机的ip设置 vi /etc/sysconfig/network-scripts/ifcfg-eth0
重启网卡
service network restart
测试
ping www.baidu.com