Skip to content

Instantly share code, notes, and snippets.

@jpillora
Last active February 6, 2023 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpillora/50d9739f2d1c21ae175a2edfadc2529f to your computer and use it in GitHub Desktop.
Save jpillora/50d9739f2d1c21ae175a2edfadc2529f to your computer and use it in GitHub Desktop.
Mininet demo on M1 Macs
  1. Setup multipass https://multipass.run/

  2. Setup XQuartz https://www.xquartz.org/

  3. Run ubuntu and connect over ssh

  4. Setup mininet http://mininet.org/ with sudo apt install mininet

  5. Open one tab with Wireshark, using ssh -X ubuntu@<ip> sudo -E wireshark

  6. Open another tab with Mininet, using:

ubuntu@<ip>
# Welcome to Ubuntu 22.04.1 LTS
# one-time setup
git clone https://github.com/mininet/mininet
mininet/util/install.sh -w
# start mininet
sudo mn
# mininet>
h1 ping h2
# works
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment