...
press control-D
to return to the mininet-onos>
prompt.
How can I run ONOS
...
CLI commands from the mininet-onos> prompt?
There are several ways of doing it - you can use the one which works best for you. Here are four equivalent ways of invoking the onos:apps
command:
...
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
...
title | Warning! Connecting to ONOS using karaf's client is deprecated. |
---|
...
ONOS
...
Make sure karaf's bin/
directory is in your path, then:
Code Block | ||
---|---|---|
| ||
client -h 192.168.123.1 # or the address of the ONOS node you wish to connect to |
...
console using ssh
?
From inside the Mininet VM itself:
Code Block | ||
---|---|---|
| ||
ssh -p 8101 karaf@192.168.123.1 # replace with the IP address of onos1 if it is different |
In this example, 8101
is the karaf port, and 192.168.123.1
is the IP address of onos1
.
From From outside of the Mininet VM (e.g. from the VM server):
Code Block | ||
---|---|---|
| ||
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 from a shell/bash prompt using karaf's client?
Info | ||
---|---|---|
| ||
This method is deprecated and may only work with older ONOS versions. For newer ONOS versions, you should connect using |
Make sure karaf's bin/
directory is in your path, then:
Code Block | ||
---|---|---|
| ||
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 if ONOS is running in a Mininet host inside a VM?
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.
...