Category: SDN

Install Open vSwitch

$ sudo apt-get install -y openvswitch-switch

Install ONOS (v1.15)

# Tested on Ubuntu 18.04 # CPUs: 8, Memory: 8GB $ wget -P /tmp/ https://www.0x010.com/downloads/jdk/jdk-8u202-linux-x64.tar.gz $ sudo mkdir -p /usr/lib/java $ sudo tar xvfz /tmp/jdk-8u202-linux-x64.tar.gz -C /usr/lib/java/ $ echo “PATH=$PATH:/usr/lib/java/jdk1.8.0_202/bin” | sudo tee -a /etc/environment $ echo “JAVA_HOME=/usr/lib/java/jdk1.8.0_202/” | sudo tee -a /etc/environment $ echo “JRE_HOME=/usr/lib/java/jdk1.8.0_202/jre” | sudo tee -a /etc/environment $ . /etc/environment $ […]

Install Ryu (4.34)

# Tested on Ubuntu 18.04 $ sudo apt-get -y install build-essential python-dev python-pip libffi-dev libssl-dev libxml2-dev libxslt1-dev zlib1g-dev $ git clone https://github.com/faucetsdn/ryu.git $ cd ryu; git checkout v4.34 $ pip install . # execute RYU with the simple with for OpenFlow 1.0 $ ./bin/ryu-manager –verbose ryu.app.simple_switch # execute RYU with the simple with for OpenFlow […]

Install Beacon (v1.0.4)

# Tested on Ubuntu 18.04 $ sudo apt-get -y install openjdk-8-jre openjdk-8-jdk $ wget https://www.0x010.com/downloads/sdn/beacon-1.0.4-linux_x86_64.tar.gz $ tar -zxvf beacon-1.0.4-linux_x86_64.tar.gz -C ~ $ cd ~/beacon-1.0.4 $ sed -i “s/#controller.threadCount=1/controller.threadCount=$(nproc)/g” beacon.properties $ ./beacon -configuration configurationSwitch

Install NOX

# Tested on Ubuntu 14.04 # Requirement: gcc-4.6 and g++-4.6 $ cd ~ $ wget https://www.0x010.com/downloads/sdn/nox.tar.gz $ tar xvfz nox.tar.gz $ mv nox/run_nox.sh ~ $ sudo apt-get -y install gcc-4.6 g++-4.6 autoconf $ sudo mv /usr/bin/gcc /usr/bin/gcc.bak $ sudo ln -s /usr/bin/gcc-4.6 /usr/bin/gcc $ sudo mv /usr/bin/g++ /usr/bin/g++.bak $ sudo ln -s /usr/bin/g++-4.6 /usr/bin/g++ $ sudo […]

Arista switch OpenFlow setup

Tested version: EOS-4.12.7.1 (Serial speed: 9600) – Default ID and password admin / [enter] – Factory initialization # reload now (“>” to “#” : enable) – Write changes into the startup configuration # write memory if ZeroTouch is enabled, ‘ # zerotouch cancel ‘ – Set the IP address of the management port # configure terminal […]

Pica8 switch OpenFlow setup

Tested device:  P-3290, P-3295, tested version: 2.3.7 (Serial speed: 19200) – Change Mode $ sudo picos_boot select OVS type [switch IP]/24 type [gateway IP] – Start PicOS $ sudo service picos start – Stop PicOS $ sudo service picos stop – Restart PicOS $ sudo service pcios restart – Setup OVS $ vi setup.sh ## == ## #!/bin/bash […]

HP switch OpenFlow setup

Tested device:  HP-3800 J9575A (Serial speed: 9600) Connect the console of a switch # erase all -> Clean up everything # menu Select – 2 Switch Configuration… Select – 5 IP Configuration Choose – [ Edit ] Type – Gateway -> [gateway IP] Change – DHCP/Bootp -> Manual Type – [IP Address] / [Subnet Mask] Choose – [ […]

Install Open vSwitch (CentOS)

# yum install -y https://www.rdoproject.org/repos/rdo-release.rpm # yum install openvswitch # systemctl start openvswitch # systemctl enable openvswitch # ovs-vsctl -V

Step 6: Remove all Docker containers and OVS bridges

$ vi clear_all.sh #!/bin/bash # remove all Docker containers docker rm -f $(docker ps -aq) # remove OVS bridges sudo ovs-vsctl del-br br0 sudo ovs-vsctl del-br br1 sudo ovs-vsctl del-br br2 # remove veth sudo rm -rf /var/run/netns $ chmod +x clear_all.sh $ ./clear_all.sh