1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mininet上のhostからInternetに接続する

Posted at

はじめに

今回はmininet上のホストからInternetに接続してwww.google.comにpingを繋ぐ方法のメモです。

問題点

前々回に立てたmininetの仮想ネットワーク上のhostから$ping www.google.comを実行したところすべてパケットロスする。

原因

You can't ping google.com because your Mininet network is not connected to the internet. This is usually a good thing! Usually Mininet networks use a non-routable IP address range like 10.0.0.0/8.
https://github.com/mininet/mininet/wiki/FAQ#why-cant-i-ping-google-from-my-mininet-hosts

解決策

リンク先に書いてありますが
mnコマンドで--natオプションをつければよいです。
しかし、version2.2以降です。なんとRyuのチュートリアルイメージの環境では、version 2.2より前だったので使えません。(具体的な数値は忘れました)

mininetのversion up

ここ参照

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?