无法在Mininet VM上ping google.com

问题描述 投票:0回答:2

我根据here的说明安装了Mininet。启动mininet VM后,当我尝试ping google.com时,它会给出错误:

enter image description here

有谁能帮我解决问题?

networking simulator mininet
2个回答
1
投票

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

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


1
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.