![]() |
ViewsUbuntu InstallFrom OpenFlow Wiki
UbuntuInstall UbuntuDownload the Ubuntu 8.10 Desktop or Server ISO from [1], and install Ubuntu. To minimize the size of a VM-based install, download the Ubuntu server ISO image, boot from it, press F4 on the first screen and select "Install a minimal virtual machine". Install OpenFlowSuggested for VM-based installs, so that these instructions can be copied from a web browser: sudo apt-get -y install ssh <ssh into your VM> Install from the Stanford Git repository: sudo apt-get install git-core automake m4 pkg-config libtool git clone http://openflowswitch.org/openflow cd openflow ./boot.sh Or, to install from tarball (not recommended - harder to pull new updates and contribute code): wget http://openflowswitch.org/downloads/openflow-0.8.9.tar.gz tar xzf openflow-v0.8.9.tar.gz cd openflow-v0.8.9 Download required packages for compiling OpenFlow and building kernel modules: sudo apt-get install gcc linux-headers-`uname -r` Build OpenFlow user-space and kernel-space switches: ./configure --with-l26=/lib/modules/`uname -r`/build make sudo make install Install Wireshark DissectorThe OpenFlow Wireshark Dissector is included in the standard OpenFlow distribution. It requires one additional library, plus the Wireshark package. Install Wireshark and glib: sudo apt-get install wireshark libgtk2.0-dev Make and install: cd utilities/wireshark_dissectors/openflow make sudo make install Install Regression SuiteThe OpenFlow Regression Suite is also included in the standard OpenFlow distribution. It requires a few additional packages and some environment variables. Install required packages for the test suite: sudo apt-get install liberror-perl libio-interface-perl liblist-moreutils-perl libpcap0.8-dev iproute psmisc cd regress sudo scripts/install_perlmods_apt.pl Remove avahi-daemon, which often causes tests to fail by sending out messages during tests: sudo apt-get remove avahi-daemon Update the OF_ROOT environment variable for your setup: cd ~/ cp <openflow-dir>/regress/scripts/env_vars . vim env_vars Set root password, if you haven't already done so: sudo passwd root Verify InstallLogin as root: su Load environment variables: source ~/env_vars These can be automatically sourced upon login, by appending the preceding line to the ~/.bashrc file. Load virtual ethernet pairs: veth_setup.pl Verify ethernet pairs: /sbin/ifconfig | more You should see veth0..7 listed. Start Wireshark: wireshark & In the Filter bar at the top, enter: of || tcp.flags.reset == 1 Starting recording packets: go to Capture->Interfaces and select the lo (loopback) interface. Run kernel-space tests: of_kmod_veth_test.pl You should now see OpenFlow packets going between the switch and the controller while the test suite runs. TCP reset packets separate each test. You can click on the OpenFlow portion of each packet and identify its fields. At this point, you've verified the installation. To run the user-space tests: of_user_veth_test.pl |
Quick NavigationOpenFlow White PaperSIGCOMM Demo Video![]() Watch the Video of theOpenFlow Demo that received the best demo award at SIGCOMM 2008. About OpenFlow OpenFlow is supported bythe Stanford Clean Slate Program. Wiki ToolsPersonal toolsProjects |