Difference between revisions of "Mininet"
From HackerNet
Helikopter (talk | contribs) |
|||
Line 20: | Line 20: | ||
==Controller== | ==Controller== | ||
+ | Det blir lite roligare om man har en controller till sitt virtuella nätverk så man kan peka och klicka lite. | ||
+ | |||
+ | Ladda ner följande och ladda upp till mininet: | ||
+ | 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 | ||
+ | Installation | ||
+ | apt-get update | ||
+ | apt-get 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 | ||
+ | ### New screen ### | ||
+ | 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/ |
Revision as of 15:03, 8 June 2015
An Instant Virtual Network on your computer.
Intro: https://www.youtube.com/watch?v=jmlgXaocwiE
Projektets hemsida: http://mininet.org/
Contents
Installation
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.
Ladda ner följande och ladda upp till mininet:
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
Installation
apt-get update apt-get 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 ### New screen ### 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/