About
This page contains notes related to installing the OLSR (Optimized Link State Routing) mesh routing protocol on Guruplugs.
For a related effort, also see the Guruplugs and BATMAN page, which has more information about building the necessary bootloader and kernel.
Initial Observations
I started with 4 Guruplugs (1 EU plug ordered from dureg GmbH, and 3 US plugs ordered from GlobalScale).
Plan and Prerequisites
After building a custom kernel and bootloader, I was able to set up basic ad-hoc mlan0 interfaces with the following layout.
|
eth0
|
mlan0
|
EU
|
172.16.90.193/16
(00:50:43:01:5a:c1)
|
172.18.90.193/16
(00:24:23:1f:a5:cb)
|
US1
|
172.16.218.193/16
(f0:ad:4e:00:da:c1)
|
172.18.218.193/16
(00:24:23:77:ff:63)
|
US2
|
172.16.217.183/16
(f0:ad:4e:00:d9:b7)
|
172.18.217.183/16
(00:24:23:78:06:fb)
|
US3
|
172.16.217.243/16
(f0:ad:4e:00:d9:f3)
|
172.18.217.243/16
(00:24:23:78:09:09)
|
Installing OLSRd was completely trivial and as simple as running "aptitude install olsrd" and configuring the "mlan0" interface in the olsrd.conf file.
After this, automatic setting and updating the IP routes began immediately.
Physical Setup
I distributed the 4 Guruplugs in different rooms of the Metalab hacker space in a way that made sure not all of them were able to reach each other directly.
Routes
Routes on the EU Guruplug:
172.18.218.193 via 172.18.218.193 dev mlan0 metric 2 onlink
172.18.217.243 via 172.18.217.243 dev mlan0 metric 2 onlink
172.18.217.183 via 172.18.217.183 dev mlan0 metric 2 onlink
172.18.0.0/16 dev mlan0 proto kernel scope link src 172.18.90.193
172.19.0.0/16 dev eth0 proto kernel scope link src 172.19.0.1
Routes on the US1 Guruplug:
172.18.0.0/16 dev mlan0 proto kernel scope link src 172.18.218.193
172.18.90.193 via 172.18.90.193 dev mlan0 metric 2 onlink
172.18.217.183 via 172.18.217.183 dev mlan0 metric 2 onlink
172.18.217.243 via 172.18.90.193 dev mlan0 metric 2 onlink
172.19.0.0/16 dev eth0 proto kernel scope link src 172.19.0.1
Routes on the US2 Guruplug:
172.18.0.0/16 dev mlan0 proto kernel scope link src 172.18.217.183
172.18.90.193 via 172.18.90.193 dev mlan0 metric 2 onlink
172.18.217.243 via 172.18.90.193 dev mlan0 metric 2 onlink
172.18.218.193 via 172.18.218.193 dev mlan0 metric 2 onlink
172.19.0.0/16 dev eth0 proto kernel scope link src 172.19.0.1
Routes on the US3 Guruplug:
172.18.0.0/16 dev mlan0 proto kernel scope link src 172.18.217.243
172.18.90.193 via 172.18.90.193 dev mlan0 metric 2 onlink
172.18.217.183 via 172.18.90.193 dev mlan0 metric 2 onlink
172.18.218.193 via 172.18.90.193 dev mlan0 metric 2 onlink
172.19.0.0/16 dev eth0 proto kernel scope link src 172.19.0.1
Comments (0)
You don't have permission to comment on this page.