A tutorial on setting up the whole virtual invironment for OpendayLight SDN controller.
Category | Detail --- | --- | --- OS | Centos 7 or Ubuntu 14.04 SDN Controller | OpendayLight Beryllium-SR2 Virtual network | Mininet 2.2.1 Virtual switch | Open vSwitch 2.3.3 Network trafic generation | iperf or iperf3 Traffic monitoring | sFlow-RT
sudo apt-get -y install git
sudo yum -y install git
./install_mininet.sh
git clone https://github.com/mininet/mininet.git
(1) ADD the following before the line ‘test -e /etc/fedora-release && DIST=”Fedora”‘. Somewhere around line 47. May differ.
test -e /etc/centos-release && DIST="CentOS"
if [ "$DIST" = "CentOS" ]; then
install='sudo yum -y install'
remove='sudo yum -y erase'
pkginst='sudo rpm -ivh'
# Prereqs for this script
if ! which lsb_release &> /dev/null; then
$install redhat-lsb-core
fi
fi
(2) EDIT
if ! echo $DIST | egrep 'Ubuntu|Debian|Fedora'; then
echo "Install.sh currently only supports Ubuntu, Debian and Fedora."
exit 1
fi
to
if ! echo $DIST | egrep 'Ubuntu|Debian|Fedora|CentOS'; then
echo "Install.sh currently only supports Ubuntu, Debian and Fedora."
exit 1
fi
mininet/util/install.sh -nf
./install_ovs.sh
yum -y install wget gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool
adduser ovs
su - ovs
wget http://openvswitch.org/releases/openvswitch-2.3.3.tar.gz
cp openvswitch-2.3.3.tar.gz ~/rpmbuild/SOURCES/
tar xfz openvswitch-2.3.3.tar.gz
sed 's/openvswitch-kmod, //g' openvswitch-2.3.3/rhel/openvswitch.spec > openvswitch-2.3.3/rhel/openvswitch_no_kmod.spec
rpmbuild -bb --nocheck openvswitch-2.3.3/rhel/openvswitch_no_kmod.spec
exit
mkdir /etc/openvswitch
yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.3.3-1.x86_64.rpm
systemctl start openvswitch.service
chkconfig openvswitch on
root@user:~# sudo ovs-vsctl show
5ad5c67c-163b-41a3-9d60-9708efe79cbd
ovs_version: “2.3.3”
root@user:~# sudo mn --test pingall
*** Creating network
*** Adding controller
*** Adding hosts:
.
.
.
*** Results: 0% dropped (2/2 received)
*** Stopping 1 controllers
c0
*** Stopping 1 switches
s1 ..
*** Stopping 2 hosts
h1 h2
*** Done
completed in 5.125 seconds
Download through web browser or use wget
in terminal. (Note:following is currently the latest version.)
wget https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.4.2-Beryllium-SR2/distribution-karaf-0.4.2-Beryllium-SR2.zip
unzip distribution-karaf-0.4.2-Beryllium-SR2.zip
cd distribution-karaf-0.4.2-Beryllium-SR2
./bin/karaf
Use version
to check the version.
opendaylight-user@root>version
3.0.3
Reference:https://www.opendaylight.org/software/downloads/beryllium-sr2
opendaylight-user@root>feature:install odl-mdsal-clustering
opendaylight-user@root>feature:install odl-restconf
opendaylight-user@root>feature:install odl-l2switch-switch
opendaylight-user@root>feature:install odl-openflowplugin-all
opendaylight-user@root>feature:install odl-dlux-all
opendaylight-user@root>feature:install odl-mdsal-all
Advisement: Install odl-mdsal-clustering first then install other components one by one
Check all the components feature:list
Check installed components feature:list -i
http://controller-ip:8181/index.html
account:admin
password:admin
Please feel free to send me a pull request if you wanna contribute:)