Changes between Version 13 and Version 14 of Internal/OpenFlow/DemoAPImage


Ignore:
Timestamp:
Oct 1, 2010, 12:42:38 AM (14 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/OpenFlow/DemoAPImage

    v13 v14  
    172172Sep 22 19:56:05|00004|rconn|INFO|dp0<->tcp:10.50.0.13: connecting...
    173173}}}
     174
     175----
     176=== 9/30/2010 ===
     177
     178Making the node behave as an access point from the ssugrim-node-1-7-2010-09-22-20-04-54.ndz image.
     179
     180Edit ''/etc/default/hostapd'', enable debugging, and dameon mode, and the conf file:
     181
     182{{{
     183RUN_DAEMON="yes"
     184DAEMON_CONF="/etc/hostapd/hostapd.conf"
     185DAEMON_OPTS="-dd"
     186}}}
     187
     188Edit ''/etc/hostpad/hostapd.conf'', add or enable the following lines:
     189
     190{{{
     191interface=wlan0
     192bridge=br0
     193driver=nl80211
     194ssid=ANSSID
     195hw_mode=b (to start with)
     196channel=1
     197}}}
     198
     199Make a ''/var/run/hostapd'' directory.
     200
     201Insert the kernel module, from the ''/opt/openvswitch-1.1.0pre2'' directory run:
     202{{{
     203insmod datapath/linux-2.6/openvswitch_mod.ko
     204}}}
     205
     206should see:
     207
     208{{{
     209lsmod
     210Module                  Size  Used by
     211openvswitch_mod        61272  0
     212}}}
     213
     214Initialize the database:
     215{{{
     216ovsdb-tool create /usr/local/etc/ovs-vswitchd.conf.db vswitchd/vswitch.ovsschema
     217}}}
     218
     219Start the switch database server:
     220{{{
     221ovsdb-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 --detach
     222}}}
     223
     224initialize the database using ovs-vsctl (only needs to be done once, ever):
     225{{{
     226ovs-vsctl --no-wait init
     227}}}
     228
     229start the switch server:
     230{{{
     231ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock --detach
     232}}}
     233
     234You should be able to see the running process's
     235{{{
     236ps -ef | grep ovs
     237root       865     1  0 20:30 ?        00:00:00 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 --detach
     238root       870     1  0 20:32 ?        00:00:00 ovs-vswitchd unix:/usr/local/var/run/openvswitch/db.sock --detach
     239}}}
     240
     241Make a bridge with ovs-vsctl:
     242{{{
     243ovs-vsctl add-br br0
     244ovs-vsctl add-port br0 wlan0
     245ovs-vsctl add-port br0 eth0
     246}}}
     247
     248You should be able to check it's ports:
     249{{{
     250ovs-vsctl list-ports br0
     251eth0
     252wlan0
     253}}}
     254
     255Finally start the hostapd serivce.
     256{{{
     257serivce hostapd start
     258}}}
     259