wiki:Internal/OpenFlow/WimaxOpenV

Version 2 (modified by ssugrim, 14 years ago) ( diff )

Installing Open V switch on cons-wm-01

Identifying information:

hostname -f
wm-asngw-01.orbit-lab.org

more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.04
DISTRIB_CODENAME=jaunty
DISTRIB_DESCRIPTION="Ubuntu 9.04

uname -a
Linux wm-asngw-01 2.6.28-18-server #60-Ubuntu SMP Fri Mar 12 05:41:54 UTC 2010 i686 GNU/Linux

ifconfig
eth0      Link encap:Ethernet  HWaddr 00:1f:29:0e:3a:68
          inet addr:10.41.0.3  Bcast:10.41.255.255  Mask:255.255.0.0
          inet6 addr: fe80::21f:29ff:fe0e:3a68/64 Scope:Link
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:636384 errors:0 dropped:0 overruns:0 frame:0
          TX packets:828244 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:176839258 (176.8 MB)  TX bytes:91011015 (91.0 MB)
          Interrupt:17
...

9/20/2010

Currently In opt there is an existing open openvsiwtch tarball, but it seems to be for a slightly older version. I've copied the newest stable version from the openvswitch website.

sudo wget http://openvswitch.org/releases/openvswitch-1.1.0pre2.tar.gz

I'm bascially following this guide

The build process went as follows:

  1. I checked for some prerequisites:
    • pkg-configure
    • libssl-dev
  2. ./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 are building with out kernel modules (apparently don't need them, the service will run in userspace). The config.log is included for comparison.
  3. make
  4. make install
  5. The final step involves initializing a config database:
    http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD
    

Once Built we need to start the database server and the switch damemon before we can do any thing with it:

  1. Start the server with this command:
    ovsdb-server /usr/local/etc/ovs-vswitchd.conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock --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 &
    
  2. initialize the database using ovs-vsctl (only needs to be done once)
    ovs-vsctl --no-wait init
    
  3. Once the database server is started, we next can start the switch server:
    ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock &
    

Once this is done the switch daemon should be running in userspace.

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.