Changes between Version 3 and Version 4 of Internal/OpenFlow/WimaxOpenV


Ignore:
Timestamp:
Sep 20, 2010, 10:24:18 PM (14 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/WimaxOpenV

    v3 v4  
    3838}}}
    3939
    40 I'm bascially following [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD this guide]
     40I'm bascially following [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD Linux] and [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.OpenFlow;hb=HEAD OpenFlow] guides.
    4141
    4242The build process went as follows:
    4343
    44  1. I checked for some prerequisites:
     44 1. I checked for some prerequisite apt-packages:
    4545     * pkg-configure
    4646     * libssl-dev
    47  1. ./configure in the /opt/openvswitch-1.1.0pre2 (created from untarring the downloaded file). There are config flags but we didn't need them, we
    48     are building with out kernel modules (apparently don't need them, the service will run in userspace). The config.log is included for comparison.
     47     * kernel-headers
     48     * build-essential
     49 1. Run configure with kernel flag
     50    {{{
     51    ./configure --with-l26=/lib/modules/`uname -r`/build
     52    }}}
     53    It ran from /opt/openvswitch-1.1.0pre2. Built kernel modules since the are Needed for the Openflow Implementation.
    4954 1. make
    5055 1. make install
    51  1. The final step involves initializing a config database:
     56 1. Insert the modules
     57    {{{
     58    insmod datapath/linux-2.6/openvswitch_mod.ko
     59    }}}
     60    Dmesg should note the addtion of the module:
     61    {{{
     62    [5343452.547746] Open vSwitch 1.1.0pre2, built Sep 20 2010 17:04:53
     63    }}}
     64----
     65== NOT SURE IF THIS IS NEEDED ==
     66
     67  The final step of the build involves initializing a config database:
    5268    {{{
    5369    http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD
     
    5773 1. Start the server with this command:
    5874    {{{
    59     ovsdb-server /usr/local/etc/ovs-vswitchd.conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --private-key=db:SSL,private_key --certificate=db:SSL,certificate --bootstrap-ca-cert=db:SSL,ca_cert &
     75    ovsdb-server /usr/local/etc/ovs-vswitchd.conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,managers --private-key=db:SSL,private_key --certificate=db:SSL,certificate --bootstrap-ca-cert=db:SSL,ca_cert &
    6076    }}}
    6177 1. initialize the database using ovs-vsctl (only needs to be done once)
     
    6783    ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock &
    6884    }}}
     85----
    6986
    70 Once this is done the switch daemon should be running in userspace.
     87We can create Virtual interfaces with the IP command [http://linux.die.net/man/8/ip IP manual] Something of the form
     88{{{
     89>ip link add type veth
     90}}}
     91
     92Once this is created, we can add the virtual interface to the open flow switch with ovs-dpctl.
     93{{{
     94>ovs-dpctl add-dp dp0
     95>ovs-dpctl add-if dp0 veth0
     96>ovs-dpctl show
     97system@dp0:
     98        flows: cur:0, soft-max:1024, hard-max:1048576
     99        ports: cur:2, max:1024
     100        groups: max:16
     101        lookups: frags:0, hit:0, missed:12, lost:0
     102        queues: max-miss:100, max-action:100
     103        port 0: dp0 (internal)
     104        port 1: veth0
     105
     106}}}
     107