Changes between Version 5 and Version 6 of Tutorials/m0SDN/aHelloOF


Ignore:
Timestamp:
May 27, 2015, 9:02:28 PM (9 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/m0SDN/aHelloOF

    v5 v6  
    9696...
    9797 }}}
     984. Mininet shell interaction is not necissary. We can run a single hello world test with a single command.:
     99   {{{
     100root@node1-2:~# mn --topo=single,2 --controller=remote,ip=192.168.1.1 --test pingall
     101   }}}
     102   The output should look like this.
     103   {{{
     104*** Creating network
     105*** Adding controller
     106*** Adding hosts:
     107h1 h2
     108*** Adding switches:
     109s1
     110*** Adding links:
     111(h1, s1) (h2, s1)
     112*** Configuring hosts
     113h1 h2
     114*** Starting controller
     115c0
     116*** Starting 1 switches
     117s1
     118*** Waiting for switches to connect
     119s1
     120*** Ping: testing ping reachability
     121h1 -> h2
     122h2 -> h1
     123*** Results: 0% dropped (2/2 received)
     124*** Stopping 1 controllers
     125c0
     126*** Stopping 1 switches
     127s1 ..
     128*** Stopping 2 links
    98129
     130*** Stopping 2 hosts
     131h1 h2
     132*** Done
     133completed in 5.111 seconds
     134    }}}
     135
     136=== Extra Credit - Using a different Controller ===
     137
     138We can use a different controller to manage our test switch / network. One possibility would be to you the Open Day Light controller. A Reference implementation is installed on the image:
     139{{{
     140ubuntu-14-04-64bit-OpenDayLight-Helium.ndz
     141}}}
     142
     143We can load this image instead of the floodlight image via the alternative load command:
     144{{{
     145omf load -t node1-1 -i ubuntu-14-04-64bit-OpenDayLight-Helium.ndz
     146}}}
     147
     148Once this image is loaded we'll have to preform a few additional steps to bring it up:
     149
     150 1. Configure the eth0 interface as before
     151    {{{
     152$ ssh root@node1-1 "ifconfig eth0 inet 192.168.1.1 up"
     153    }}}
     154 1. from a shell on node1-1 set the JAVA_HOME environment variable:
     155    {{{
     156export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
     157    }}}
     158 1. launch the karaf shell:
     159    {{{
     160~/distribution-karaf-0.2.3-Helium-SR3/bin/karaf
     161    }}}
     162 1. Install the required features
     163    {{{
     164feature:install odl-base-all odl-aaa-authn odl-restconf odl-adsal-northbound odl-mdsal-apidocs odl-l2switch-switch
     165feature:install odl-ovsdb-northbound
     166    }}}
     167 1. Exit the shell via ctrl-d
     168 1. Start the ODL service
     169    {{{
     170~/distribution-karaf-0.2.3-Helium-SR3/bin/karaf
     171    }}}
     172 1. On node1-2 preform the same mini-net test
     173    {{{
     174mn --topo=single,2 --controller=remote,ip=192.168.1.1 --test pingall
     175    }}}
    99176----
    100177=== Next Steps ===
    101  * Use a different controller image - e.g. Open Day Light
    102178 * Use a real bare metal switch and real nodes - see NEXT TUTORIAL