Mesh networking on OpenWRT 15.05 with OLSR: Difference between revisions

From lechacal
Jump to navigation Jump to search
Line 45: Line 45:
  opkg update
  opkg update


  opkg install luci-app-olsr luci-app-olsr-services luci-app-olsr-viz olsrd olsrd-mod-arprefresh olsrd-mod-bmf olsrd-mod-dot-draw olsrd-mod-dyn-gw olsrd-mod-dyn-gw-plain olsrd-mod-httpinfo olsrd-mod-mdns olsrd-mod-nameservice olsrd-mod-p2pd olsrd-mod-pgraph olsrd-mod-secure olsrd-mod-txtinfo olsrd-mod-watchdog olsrd-mod-quagga wireless-tools luci-lib-json
  opkg install luci-app-olsr luci-app-olsr-services luci-app-olsr-viz luci-lib-json
opkg install  olsrd olsrd-mod-arprefresh olsrd-mod-bmf olsrd-mod-dot-draw olsrd-mod-dyn-gw olsrd-mod-dyn-gw-plain olsrd-mod-httpinfo olsrd-mod-mdns olsrd-mod-nameservice olsrd-mod-p2pd olsrd-mod-pgraph olsrd-mod-secure olsrd-mod-txtinfo olsrd-mod-watchdog olsrd-mod-quagga
opkg install wireless-tools


=Setup a Node with internet access - Gateway=
=Setup a Node with internet access - Gateway=

Revision as of 16:48, 25 July 2018

DOCUMENT UNDER CONSTRUCTION.

Overview

Preliminaries

Access with command like via ssh is required. Use Putty or any other terminal.

Software

OpenWRT 15.05 Chaos Calmer is installed with defaults. Target device as 8Mb Flash Memory Minimum.

Hardware

Note concerning the WR703N router. This must be modified with upgraded flash memory. The default unit does not have sufficient memory.

This will work on EmonWRT3 and ModWRT devices.

Setup a Node

This is for setting up a simple node that has no access to the outside but can connect to other nodes. Most unit in the network will have this configuration.

We will use here

  • Wired - Static IP 192.168.2.1 (for configuration access only)
  • Wifi - Ad-hoc wifi with Static IP 10.10.10.xx (for comms with other nodes).

-1-

First of all make sure the wired interface LAN is setup with static IP address. For our example we will use 192.168.2.1 (if you opt for another ip address then avoid the internet access subnet - like 192.168.1.0 for home routers.)

Make sure the interface is not bridging the wifi.

  • In Network | Interfaces click on Edit on the LAN interfaces. Then in Physical Settings untick create a bridge over specified interface(s).
  • Make sure Ethernet Adapter: "et0" (lan) is ticked on.

You should now configure this unit by connecting a computer directly to this node with an ethernet cable.

The Lan interface should look like this below.

-2- install packages

Install the required packages with the command below:

opkg update
opkg install luci-app-olsr luci-app-olsr-services luci-app-olsr-viz luci-lib-json
opkg install  olsrd olsrd-mod-arprefresh olsrd-mod-bmf olsrd-mod-dot-draw olsrd-mod-dyn-gw olsrd-mod-dyn-gw-plain olsrd-mod-httpinfo olsrd-mod-mdns olsrd-mod-nameservice olsrd-mod-p2pd olsrd-mod-pgraph olsrd-mod-secure olsrd-mod-txtinfo olsrd-mod-watchdog olsrd-mod-quagga
opkg install wireless-tools

Setup a Node with internet access - Gateway

Wifi Encryption

opkg remove wpad-mini
opkg update
opkg install wpad authsae