文章目录 报错原因解决方法最后的方法 报错 原因 nameserverip需要设置为宿主主机IP 解决方法 修改ip 重启但依旧无效 修改配置文件 vim /etc/networkinterfaces auto eth0 iface eth0 inet dhcp address eth0 10.10.10.132 netmask 255.255.255.0 gateway 10.10.10.132 结果ping成功,中间过程都做了,但依然可能出现问题 最后的方法 打开VMware网络编辑器,恢复默认设置