Difference between revisions of "Mininet"

From HackerNet
Jump to: navigation, search
m
Line 1: Line 1:
[[Category:Guider]]
 
 
An Instant Virtual Network on your computer.  
 
An Instant Virtual Network on your computer.  
  
Line 33: Line 32:
  
 
===Opendaylight===
 
===Opendaylight===
Ladda ner följande och ladda upp till mininet:
+
'''Installation'''
  https://jenkins.opendaylight.org/releng/view/controller/job/controller-merge-stable-helium/lastStableBuild/org.opendaylight.controller$distribution.opendaylight/artifact/org.opendaylight.controller/distribution.opendaylight/0.1.6-SNAPSHOT/distribution.opendaylight-0.1.6-SNAPSHOT-osgipackage.zip
+
  wget http://ds.karen.hj.se/~cameljoe/distribution.opendaylight-0.1.6-SNAPSHOT-osgipackage.zip
Installation
+
  sudo apt-get update && sudo apt-get -y install maven git openjdk-7-jre openjdk-7-jdk unzip screen
  apt-get update && apt-get -y install maven git openjdk-7-jre openjdk-7-jdk unzip screen
 
 
  screen
 
  screen
 
  unzip distribution.opendaylight-0.1.6-SNAPSHOT-osgipackage.zip
 
  unzip distribution.opendaylight-0.1.6-SNAPSHOT-osgipackage.zip
Line 43: Line 41:
 
  export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
 
  export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
 
  ./run.sh
 
  ./run.sh
### New screen ###
+
'''http://IP:8080 admin:admin'''
 
  sudo mn --controller=remote,ip=127.0.0.1 --topo=tree,3 --listenport=6633
 
  sudo mn --controller=remote,ip=127.0.0.1 --topo=tree,3 --listenport=6633
 
Logga in på webgui: http://IP:8080 admin:admin
 
  
 
http://mininet.org/blog/2013/06/03/automating-controller-startup/
 
http://mininet.org/blog/2013/06/03/automating-controller-startup/
  
 
===Floodlight===
 
===Floodlight===
  sudo apt-get update && sudo apt-get install build-essential default-jdk ant python-dev eclipse screen
+
'''Installation'''
 +
  sudo apt-get update && sudo apt-get -y install build-essential default-jdk ant python-dev eclipse screen
 
  git clone git://github.com/floodlight/floodlight.git
 
  git clone git://github.com/floodlight/floodlight.git
 
  cd floodlight && git checkout fl-last-passed-build
 
  cd floodlight && git checkout fl-last-passed-build
Line 60: Line 57:
 
'''http://IP:8080/ui/index.html'''
 
'''http://IP:8080/ui/index.html'''
 
  sudo mn --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13
 
  sudo mn --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13
 +
 +
===Brocade Vyatta===
 +
'''Installation''' OBS ''Kräver 2vCPU och 4GB ram''
 +
sudo apt-get install -y unzip curl wget python-pip screen openjdk-7-jre openjdk-7-jdk
 +
curl -sL https://deb.nodesource.com/setup | sudo bash -
 +
sudo apt-get install -y nodejs
 +
wget http://ds.karen.hj.se/~cameljoe/bvc-1.3.3.zip && sudo unzip -o bvc-1.3.3.zip -d /opt
 +
wget http://ds.karen.hj.se/~cameljoe/bvc-dependencies-1.3.3.zip && sudo unzip -o bvc-dependencies-1.3.3.zip -d /opt
 +
wget http://ds.karen.hj.se/~cameljoe/bvc-app-pathexplorer-packaging-1.2.0.zip && sudo unzip -o bvc-app-pathexplorer-packaging-1.2.0.zip -d /opt
 +
cd /opt/bvc && sudo ./install
 +
'''http://10.0.2.12:9000/#/login'''
 +
sudo mn --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13 --topo=tree,3
 +
 +
[[Category:Guider]]

Revision as of 14:22, 2 July 2015

An Instant Virtual Network on your computer.

Intro: https://www.youtube.com/watch?v=jmlgXaocwiE

Projektets hemsida: http://mininet.org/

Installation

wget https://raw.github.com/mininet/mininet/master/util/vm/install-mininet-vm.sh
bash -v install-mininet-vm.sh master
~/mininet/bin/mn --version
cd ~/mininet; git fetch --all; git checkout master; git pull --rebase origin master
sudo -n make install
sudo -n mn --test pingall
sudo sed -i -e 's/^GRUB_TERMINAL=serial/#GRUB_TERMINAL=serial/' /etc/default/grub; sudo update-grub
reboot

OVF

Ladda ned ovf:n och importera till ditt vmware-system. HWversion ligger på 11 så det kanske du måste sänka i vmx-filen för att kunna starta vm:n.
Credentials: mininet - mininet

Basic

http://mininet.org/walkthrough/

Kör igenom kommandona för att komma igång.

sudo mn

Setups

http://sdnhub.org/resources/useful-mininet-setups/

Controller

Det blir lite roligare om man har en controller till sitt virtuella nätverk så man kan peka och klicka lite.

Opendaylight

Installation

wget http://ds.karen.hj.se/~cameljoe/distribution.opendaylight-0.1.6-SNAPSHOT-osgipackage.zip
sudo apt-get update && sudo apt-get -y install maven git openjdk-7-jre openjdk-7-jdk unzip screen
screen
unzip distribution.opendaylight-0.1.6-SNAPSHOT-osgipackage.zip
cd opendaylight
##Add to ~/.bashrc for persistence through a reboot##
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
./run.sh

http://IP:8080 admin:admin

sudo mn --controller=remote,ip=127.0.0.1 --topo=tree,3 --listenport=6633

http://mininet.org/blog/2013/06/03/automating-controller-startup/

Floodlight

Installation

sudo apt-get update && sudo apt-get -y install build-essential default-jdk ant python-dev eclipse screen
git clone git://github.com/floodlight/floodlight.git
cd floodlight && git checkout fl-last-passed-build
ant;
sudo mkdir /var/lib/floodlight && sudo chmod 777 /var/lib/floodlight
screen
java -jar target/floodlight.jar

http://IP:8080/ui/index.html

sudo mn --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13

Brocade Vyatta

Installation OBS Kräver 2vCPU och 4GB ram

sudo apt-get install -y unzip curl wget python-pip screen openjdk-7-jre openjdk-7-jdk
curl -sL https://deb.nodesource.com/setup | sudo bash - 
sudo apt-get install -y nodejs 
wget http://ds.karen.hj.se/~cameljoe/bvc-1.3.3.zip && sudo unzip -o bvc-1.3.3.zip -d /opt 
wget http://ds.karen.hj.se/~cameljoe/bvc-dependencies-1.3.3.zip && sudo unzip -o bvc-dependencies-1.3.3.zip -d /opt 
wget http://ds.karen.hj.se/~cameljoe/bvc-app-pathexplorer-packaging-1.2.0.zip && sudo unzip -o bvc-app-pathexplorer-packaging-1.2.0.zip -d /opt 
cd /opt/bvc && sudo ./install

http://10.0.2.12:9000/#/login

sudo mn --controller=remote,ip=127.0.0.1,port=6633 --switch ovsk,protocols=OpenFlow13 --topo=tree,3