Changes between Version 3 and Version 4 of Internal/OpenFlow/WimaxOpenV
- Timestamp:
- Sep 20, 2010, 10:24:18 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/WimaxOpenV
v3 v4 38 38 }}} 39 39 40 I'm bascially following [http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD this guide]40 I'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. 41 41 42 42 The build process went as follows: 43 43 44 1. I checked for some prerequisite s:44 1. I checked for some prerequisite apt-packages: 45 45 * pkg-configure 46 46 * 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. 49 54 1. make 50 55 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: 52 68 {{{ 53 69 http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL.Linux;hb=HEAD … … 57 73 1. Start the server with this command: 58 74 {{{ 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 & 60 76 }}} 61 77 1. initialize the database using ovs-vsctl (only needs to be done once) … … 67 83 ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock & 68 84 }}} 85 ---- 69 86 70 Once this is done the switch daemon should be running in userspace. 87 We 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 92 Once 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 97 system@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