1、常见的普通原因解决方法
1.1 检查IP地址是否正确
命令:ip a(空格a)
![](https://upload-images.jianshu.io/upload_images/18121652-5bf5c3c6d77a3e11.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.2 检查网卡是否配置正确
命令:cat /etc/sysconfig/network-scripts/ifcfg-eth0
![](https://upload-images.jianshu.io/upload_images/18121652-acf8002d422a49df.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.3 检查是否关闭Centos7 NetworkManager
linux下面有两个管理网卡的方法:
1、network(centos6)
2、NetworkManager(centos7建议关闭)
在centos7中,默认两个同时开启,会冲突。我们需要关闭NetworkManager。
关闭NetworkManager命令:
![](https://upload-images.jianshu.io/upload_images/18121652-1016e00c1267bd41.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.4 检查VMware编辑,虚拟网络编辑器
NAT模式 子网IP: 10.0.0.0
NAT设置 网关IP: 10.0.0.254
![](https://upload-images.jianshu.io/upload_images/18121652-4f2adea9a9b3ae24.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-8b4807e93c802ac3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.5 检查VMware是否正常运行
Windows键+R 输入service.msc 然后回车
![](https://upload-images.jianshu.io/upload_images/18121652-3af66a7eccdc86d0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-1ad020fa90b426ba.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
1.6 检查VMware网卡问题
控制面板网络和 Internet网络连接
![](https://upload-images.jianshu.io/upload_images/18121652-e5cf52cc64a4c57d.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-fde88df510d34ca3.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-2db093c5d18af7ae.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
![](https://upload-images.jianshu.io/upload_images/18121652-652d92ab00d965a1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)