...
- Click Run->Run Configurations
- Right Click Java Application->New
- For Name use FloodlightLaunch
- For For Project use use Floodlight
- For For Main use use net.floodlightcontroller.core.Main
- Click Click Apply
To then run Floodlight click on the drop-down arrow next to the Play button and select the proper target to run. These also work with debug targets.
Simulating A Network
Now that Floodlight is running, you need to attach it to an OpenFlow network. One of the best tools for this is is Mininet, a network simulation tool.
- Download the the Floodlight VM. It It includes floodlight running by default and Mininet.
- Start it in VMware Fusion (set up new VM with provided vmdk) or VirtualBox (run floodlightcontroller.vbox.sh, click "Network tab" in VirtualBox GUI and OK before powering up - avoid running script from path with space in name, like "../VirtualBox VMs/..")
- Login (username is floodlight and no password is required)
- Its possible to run Mininet against the locally running Floodlight (just type "sudo mn") but you can also run it against a remote controller you built as well. To do that, type:
Code Block | ||||
---|---|---|---|---|
| ||||
$ sudo mn --controller=remote --ip=<controller ip> --port=<openFlowPort 6633 by default>
|
...
Optionally run wireshark over ssh. Listen on "eth0? and filter for packets with "of" names.
Code Block | ||||
---|---|---|---|---|
| ||||
$ ssh -X floodlight@<vm-ip>
$ sudo wireshark
&;
|
Next Steps
If you are finished the getting started guide, you may want to check out out Developing Floodlight. It will walk you through a where you will find a few simple coding exampleexamples.