Skip to content

Latest commit

 

History

History
102 lines (66 loc) · 2.81 KB

File metadata and controls

102 lines (66 loc) · 2.81 KB

Installation Guides

Quick

  1. Start Mininet on Virtual Machine (VM) and login. For example:

    $ ssh -Y mininet@vm
    $ ssh -Y mininet@192.168.56.3
  2. 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 
  3. From the same folder, run the sh install.sh shell 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
  4. While install.sh runs, it executes ssh mininet@vm ~/sdn-routing/setup.sh shell 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
    
  5. 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
    
  6. Now you can run TestNet by executing one of:

    $ sudo python ~/sdn-routing/run.py
    $ sudo ~/sdn-routing/run.py
  7. 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' ...
  8. 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.

 

Manual

  1. If the installation script install.sh does not work for you, you can manually copy and install the project. First, use scp -r to copy the directory:

    $ scp -r /path/to/sdn-routing mininet@vm:~/sdn-routing
  2. On the VM, run the setup.sh <parent-dir> script to install Python packages:

    $ ./sdn-network/setup.sh 'sdn-routing'
  3. Verify installation by listing the contents of Python distribution packages. Installed packages will appear there.

    $ ls /usr/local/lib/python2.7/dist-packages/
  4. 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.