-
Start Mininet on Virtual Machine (VM) and login. For example:
$ ssh -Y mininet@vm $ ssh -Y mininet@192.168.56.3
-
Clone this repository or download archived source code on your computer.
$ git clone git@csil-git1.cs.surrey.sfu.ca:471-project-6/sdn-routing.git
-
From the same folder, run the
sh install.shshell script to copy your local folder to the VM. If necessary, you can specify the IP address of the VM:install.sh <IP>(default = 192.168.56.3).$ ./sdn-routing/install.sh $ ./sdn-routing/install.sh 192.168.56.3
-
While
install.shruns, it executesssh mininet@vm ~/sdn-routing/setup.shshell script to install the Python modules.Installed /usr/local/lib/python2.7/dist-packages/TestNet-1.0-py2.7.egg Installed /usr/local/lib/python2.7/dist-packages/LSRouting-1.0-py2.7.egg -
When the script completes, you should this message:
All components were successfully installed Installed SDNetwork packages: TestNet: Create and test simulated SDNs Routing: Compute least-cost paths in a simulated SDN -
Now you can run TestNet by executing one of:
$ sudo python ~/sdn-routing/run.py $ sudo ~/sdn-routing/run.py
-
You can verify installation by listing the contents of home directory. Installed sdn-routing directory will appear there.
$ ls ~ install-mininet-vm.sh loxigen mininet oflops oftest openflow pox 'sdn-routing' ...
-
To verify the modules were installed, print:
$ python -c 'from TestNet import *; print(dir());' ['BabyTopo', 'CLI', 'LargeTopo', 'LinkTopo', 'Logger', 'RawWeightedLink', 'SmallTopo', ..., 'wlinks']
View sample output of the installation script install.sh.
-
If the installation script
install.shdoes not work for you, you can manually copy and install the project. First, usescp -rto copy the directory:$ scp -r /path/to/sdn-routing mininet@vm:~/sdn-routing -
On the VM, run the
setup.sh <parent-dir>script to install Python packages:$ ./sdn-network/setup.sh 'sdn-routing' -
Verify installation by listing the contents of Python distribution packages. Installed packages will appear there.
$ ls /usr/local/lib/python2.7/dist-packages/
-
Now you can run TestNet by executing one of:
$ sudo python ~/sdn-routing/run.py $ sudo ~/sdn-routing/run.py
View sample output of the package setup script setup.sh.