B.A.T.M.A.N. mesh network

B.A.T.M.A.N., a "better approach to mobile ad-hoc networking", is an alternative to OLSR. The current implementation is "batman-adv", which works on the Layer 2. This makes the network look like "one big switch". You can use whatever layer 3 protocol on top of that (ipv4, ipv6, ipx, etc.).

Misc trics

Align antenna:

while true; do echo; iw wlan0 station dump | grep -E "(Station|signal:)"; sleep 1; done

Router config, once OpenWRT is installed

Set a password:

passwd

Configure the network uplink to use dhcp:

openwrt# vi /etc/config/network
config interface lan
        option ifname   eth0
        option proto     dhcp

Change the hostname in /etc/config/system (not required, just helpful).

Reboot, then reconnect using ssh:

openwrt# reboot

Install IPv6, batman-adv:

opkg update
opkg install kmod-ipv6  radvd ip kmod-batman-adv

Tag: