Install ONOS 2.0.0 in Centos 7

ONOS (Open Networking Operating System) are software defined networking controller. This tutorial is try to install ONOS in Centos based

Disable Firewall & Selinux

sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo setenforce 0
nano /etc/selinux/config  # replace "SELINUX=enforcing" to "SELINUX=disabled"

Install Java 8

sudo yum install java-1.8.0-openjdk wget nano

Add user of ONOS

sudo adduser sdn --system --user-group

Download & Extract ONOS

cd /opt/
sudo wget
sudo tar xzf onos-2.0.0.tar.gz
sudo mv onos-2.0.0 onos
sudo chown -R sdn:sdn onos

Setting Startup Options

sudo -u sdn nano /opt/onos/options

# running onos with user sdn
export ONOS_USER=sdn

# default active drivers and openflow
export ONOS_APPS=drivers,openflow

Install ONOS service

sudo cp /opt/onos/init/onos.initd /etc/init.d/onos
sudo cp /opt/onos/init/onos.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable onos

Start ONOS

sudo systemctl start onos
sudo systemctl status onos

delete default user dari onos

/opt/onos/bin/onos-user-password onos --remove

tambahkan sendiri username dan password yang diinginkan

/opt/onos/bin/onos-user-password zufar zufar

lalu bagaimana access CLInya? untuk setiap user yang ingin akses ke CLI, generate ssh-keygen dan tambahkan public keynya

ssh-keygen -t rsa
/opt/onos/bin/onos-user-key $USER ~/.ssh/

login ke CLI


Comments are closed.