Skip to content

Instantly share code, notes, and snippets.

@edoardottt
Last active July 13, 2023 10:22
Show Gist options
  • Save edoardottt/a8717c7601a552a5deb832f598d6d288 to your computer and use it in GitHub Desktop.
Save edoardottt/a8717c7601a552a5deb832f598d6d288 to your computer and use it in GitHub Desktop.
How to Connect ONOS and Mininet VM

ONOS:

I assume ONOS IP is 192.168.1.8.

  • bazel run onos-local or bazelisk run onos-local
  • If you encounter errors with Python2 Interpreter, try adding --host_force_python=PY3
  • ssh -p 8101 onos@172.17.0.1 (default password is rocks)
  • app activate org.onosproject.fwd
  • app activate org.onosproject.openflow

Consider using bazel clean --expunge --async or bazelisk clean --expunge --async to completely remove the entire working tree created by a Bazel instance (doc reference)

MININET:

sudo mn --controller remote,ip=192.168.1.8 --switch ovs,protocols=OpenFlow13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment