Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
sudo mn --custom onos.py --controller onos,3,ipBase=172.1.2.0/24 --topo tree,3,3

How can I

...

Code Block
mininet-onos> onos

press control-D to return to the mininet-onos> prompt.

How can I run ONOS CLI commands from the mininet-onos> prompt?

...

The final method can be used to run client on a specific ONOS instance (and connect to that instance.)

How can I connect to the ONOS console from the mininet-onos> prompt?

Code Block
mininet-onos> onos

press control-D to return to the mininet-onos> prompt.

How can I connect to the ONOS console using ssh?

From From a bash/shell prompt inside the Mininet VM itself:

...

Code Block
languagebash
ssh -p 8101 karaf@<VM's IP address>  # replace with the IP address of your VM (the one you can ssh into)

How can I connect to the ONOS console

...

using karaf's client?

Info
titleWarning! Connecting to ONOS using karaf's client is deprecated.

This method is deprecated and may only work with older ONOS versions. For newer ONOS versions, you should connect using ssh.

...

Code Block
languagebash
client -h 192.168.123.1   # or the address of the ONOS node you wish to connect to  

How can I connect to the ONOS GUI

...

?

Since ONOS is running

...

on Mininet

...

hosts inside

...

the VM, connecting to the GUI is usually done in one of two ways:

One relatively foolproof One way is to run a browser inside the VM. Install a GUI in your VM if you haven't already (sudo apt-get install lxde and reboot), and then run a web browser pointed to the IP address of the ONOS node you want to talk to (for onos1, the default will be http://192.168.123.1:8181/onos/ui ). For the GUI to work well, you will want to make sure you've installed the appropriate VM support tools (such as virtualbox tools or VMware tools) for your virtualization platform.

Another A second (perhaps and probably more enjoyable) way is to run use browser on your client machine or server where the VM is running, as long as you have connectivity to the VM (make sure you can ping its IP address and/or connect to it using ssh, and make sure that it the ports on your VM aren't being blocked by a firewall.)

...