虚拟机nat能ping通内外,无法访问外网

环境:

centos ip 192.168.188.3
VMnet 8 网卡ip 192.168.188.1
虚拟网络网卡 网关 192.168.188.1


ping 192.168.188.1 可以ping通,ping外网不通;


解决方案

VMnet 8 只是相当于 网络中的一个邻居,而不是网关;

所以:
修改虚拟网络网关为 192.168.188.254
在centos 中修改 网关指向 192.168.188.254

猜你喜欢

转载自blog.51cto.com/shuzonglu/2130503