wiki:Internal/OpenFlow/DemoAPImage

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

GEC 9 Demo AP / Client Node Image

Ubuntu Version: 10.04
Current Image Name: ssugrim-node-1-7-2010-09-22-20-04-54.ndz

Installed software from Baseline Should Include:

  • HostAPD - Apt Package
  • Netsnmp - 2 Apt packages
  • OpenVswitch - Downloaded from http://openvswitch.org/releases/openvswitch-1.1.0pre1.tar.gz
    Additional Packages Required:
    • libssl-dev
    • pkg-configure (complains SSL is not found if this is not installed)
    • Optional python-json
    • Optional python-qt4
    • Optional python-zopeinterface
    • Optional python-twisted-conch
  • MadWifi - was requested but omitted, I think they just need generic Wireless drivers. Ath5k drivers are installed by default. modprobe ath5k enumerates the devices.
  • VLC - Apt package
  • Wimax driver.
  • Free-nx

Notes

It makes more sense to have a single image with all the necessary components that can change behavior based on scripts. To that end I've merged all the requirements.

9/10

Talked with KK, we'll need to iron out the verion of the kernel we're going to use. Currently I'm missing a few tools/package: NX, vlc, snmp, and snmpd

9/17/2010

Starting over with 10.04. We've decided we want the Image to be based of ubuntu 10.04 so that our wimax drivers will work with it. We may have to update date the kernel version.

So far I have:

I had to modify the sources back to their original settings cuz they were a giant mess. FreeNx failed to install and the instruction are buggy at best. The packages claim to be broken. They may have to live with VNC which we know works. If we're scripting, why do we need a remote viewer at all?

Apparently the following packages don't exist in the repository (this could be due to my sources being messed up.

  • pkg-configure (complains SSL is not found if this is not installed)
  • python-json
  • python-qt4

—-

10/22/2010

Starting over yet again, dues to some package corruption bugs. I've changed the source file to source directly from mit meadia labs for the time being to get past some issues. After an update I installed the main stay of packages.

apt-get install hostapd snmp snmpd build-essential libssl-dev pkg-config

I'll also need kernel headers for moudle support.

sudo apt-get install linux-headers-$(uname -r)

With that stuff setup I'm going to Install OpenVswitch with kernel module support.

./configure --with-l26=/lib/modules/`uname -r`/build

I'm including a copy of config.log for refrence.

I ran the usual, make, make install combo. Once run the ovs-* tools should be accessible. From here I simply need to insert the module and see if I can make a virtual switch. Create some virtual interfaces, and add them to the virtual switch.

root@node1-7:/opt/openvswitch-1.1.0pre2# insmod datapath/linux-2.6/openvswitch_mod.ko
root@node1-7:/opt/openvswitch-1.1.0pre2# lsmod
Module                  Size  Used by
openvswitch_mod        61272  0
root@node1-7:/opt/openvswitch-1.1.0pre2# ip link add type veth
root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-dpctl add-dp dp0
root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-dpctl add-if dp0 veth0
root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-dpctl show
system@dp0:
        flows: cur:0, soft-max:1024, hard-max:1048576
        ports: cur:2, max:1024
        groups: max:16
        lookups: frags:0, hit:0, missed:0, lost:0
        queues: max-miss:100, max-action:100
        port 0: dp0 (internal)
        port 1: veth0

We can verify all the drivers and modules are working with ifconfig.

root@node1-7:/opt/openvswitch-1.1.0pre2# ifconfig -a
dp0       Link encap:Ethernet  HWaddr 00:23:20:88:f5:b8
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0      Link encap:Ethernet  HWaddr 00:0f:ea:4a:8a:fe
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:11

eth1      Link encap:Ethernet  HWaddr 00:0f:ea:4a:8a:ff
          inet addr:10.40.1.7  Bcast:10.40.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20f:eaff:fe4a:8aff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:89811 errors:0 dropped:0 overruns:2 frame:0
          TX packets:6729 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:68247118 (68.2 MB)  TX bytes:1171359 (1.1 MB)
          Interrupt:10

eth2      Link encap:Ethernet  HWaddr 00:0e:35:9e:52:e6
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:7 Base address:0xa000 Memory:eb018000-eb018fff

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

veth0     Link encap:Ethernet  HWaddr b2:13:3e:6a:16:bc
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

veth1     Link encap:Ethernet  HWaddr a2:da:ae:0c:31:c9
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:60:b3:ac:a1:ce
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Finally We can start the openflow client in deamon mode with:

root@node1-7:/opt/openvswitch-1.1.0pre2# ovs-openflowd dp0 tcp:10.50.0.13 --out-of-band --detach
Sep 22 19:56:05|00001|openflowd|INFO|Open vSwitch version 1.1.0pre2
Sep 22 19:56:05|00002|openflowd|INFO|OpenFlow protocol version 0x01
Sep 22 19:56:05|00003|ofproto|INFO|using datapath ID 000000232080fc2d
Sep 22 19:56:05|00004|rconn|INFO|dp0<->tcp:10.50.0.13: connecting...

Attachments (1)

  • config.log (43.7 KB ) - added by ssugrim 14 years ago. Config file log for comparison

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.