无法在Mininet VM上ping google.com

时间:2016-01-17 05:51:20

标签: networking simulator mininet

我按照here上的说明安装了Mininet。启动mininet VM后,当我尝试ping google.com时,它会显示错误:

enter image description here

有人可以帮我解决问题吗?

2 个答案:

答案 0 :(得分:1)

问题似乎正在发生,因为在mininet VM上未正确配置DNS服务器。请检查mininet VM上的DNS配置。打开文件/etc/resolv.conf并配置DNS服务器IP地址(名称服务器)。

如果ping到google.com仍然无效,请使用“route -n”命令检查VM上的默认网关配置。

答案 1 :(得分:1)

使用“ sudo mn ..”启动拓扑时,需要添加“ --nat”