You are here: Home / Education / Courses / SDN

SDN Course

by Oleg Sadov last modified Nov 22, 2017 08:30 AM

 

Ryu controller

Open vSwitch

Mininet

Python

NauLinux:

# wget -c http://downloads.naulinux.ru/pub/SLCE/7.2/scripts/sl2ce
# wget -c http://downloads.naulinux.ru/pub/NauLinux/7.2/scripts/slce2nau
# chmod +x sl2ce slce2nau
# yum install redhat-lsb-core
# lsb_release -a # ./sl2ce # lsb_release -a # ./slce2nau # lsb_release -a # yum install '*epel*' # yum update # yum install --enablerepo=epel --enablerepo=sl --enablerepo=sl-extras ryu openvswitch mininet

EPEL:

wget -c https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum localinstall epel-release-latest-7.noarch.rpm

SL-Extras:

yum install http://ftp.riken.jp/Linux/scientific/7/repos/x86_64/yum-conf-extras-1.0-1.el7.noarch.rpm

Testing:

# service openvswitch start
# ryu-manager ryu.app.simple_switch
# mn --controller remote
*** Creating network
*** Adding controller
Unable to contact the remote controller at 127.0.0.1:6633
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
c0
*** Starting 1 switches
s1 ...
*** Starting CLI:
mininet> pingall
*** Ping: testing ping reachability
h1 -> X
h2 -> X 
*** Results: 100% dropped (0/2 received)
mininet> pingall
*** Ping: testing ping reachability
h1 -> h2 
h2 -> h1 
*** Results: 0% dropped (2/2 received)
mininet>