Welcome to the CSIR Meraka Institute's "COIN" Blog

Thursday, June 23, 2005

Setting up OLSR mesh on a Linksys

Setting up OLSR mesh on a Linksys ( Assumes a stock standard Linksys out of the box)

1. Download freifunk firmware from (http://www.freifunk.net/wiki/FreifunkFirmwareEnglish) - openwrt-g-freifunk-1.0.2-en.bin

2. Set boot wait on linksys

Web method:

Navigate to web page were you can send pings and type each of these lines one line at a time

;cp${IFS}*/*/nvram${IFS}/tmp/n
;*/n${IFS}set${IFS}boot_wait=on
;*/n${IFS}commit
;*/n${IFS}show>tmp/ping.log

NVRAM method:

telnet into box and type the following

nvram set boot_wait=on
nvram commit
reboot

3. Upload firmware

Give yourself a fixed IP in the 192.168.1.x range e.g. 192.168.1.100

Use tftp to upload firmware

tftp 192.168.1.1
tftp> binary
tftp> rexmt 1
tftp> trace
Packet tracing on.
tftp> put openwrt-g-freifunk-1.0.2-en.bin

Wait for the power light to stop flashing
Power cycle the box

4. Check that the web interface is working. Visit the site http://192.168.1.1 on your web browser - you should see the main freifunk web interface appear

5. Set up the wireless interface

WLAN protocol: Static
Ip Address: 192.168.2.5
Netmask: 255.255.255.0
WLAN Mode: Ad Hoc (Peer to Peer)
ESSID: mesh
Channel: 6
TX Power: 100

6. Set up the LAN interface

LAN protocol: Static
LAN IP: 192.168.4.1
LAN Netmask: 255.255.255.0
Disable NAT: yes
Disable Firewall: yes

7. Set up the WAN interface

WAN Protocol: DHCP
Host name: Lawrence

8. Set up OLSR

HNA4: 192.168.4.1 255.255.255.0

9. Restart the Linksys

You should now be given an IP address in the 192.168.3.x range
You should be able to connect to another mesh access point and even get a default gateway to an internet point, if one exists

6 comments:

Anonymous said...

An interesting read. Keep up the good work. One quick question here, why you mentioned get an ip address of 192.168.3.x range out of the blue. I don't see any hint in the article that lead to that ip address. Is it a misprint?

Anonymous said...

Hi,

I did a guide to setup a simple OLSR mesh too. If you guys are interested please take a look at here.

Cheers!

Anonymous said...

You should turn on the Image verification to eliminate the spam of the plastic surgery crap...and other junk.

So for my own spam, http://www.devilscove.com - Boats Boobs, and Booze.

Anonymous said...

Hi, quick question. Does this configuration mean that clients wanting to use the mesh, need to connect to one of the wired connections on the access point. As the wifi side seems to be taken up on a different IP to do all the mesh communication stuff. If i am mistaken, and clients can connect to the wireless also. Please could you explain how? I dont see it being possible with that configuration.

Cheers,
Matt

z0ltrix said...

Hey nice blog!!
have u guys implemented any kind of security for ur network??? please I would like to know how to make make the network secure

Salim Saay said...

Hi,

You should have some authenticaiton protocols such as PANA,TTLS,TLS,RADIUS and this things to have a secure network.