B.A.T.M.A.N
B.A.T.M.A.N. is an alias for "Better Approach To Mobile Adhoc Networking".
Batman-advis a mesh protocol for a layer 2 networkbatmandis a userspace daemon that operates on layer 3
But please see the Documentation on the Project Homepage.
Package: kmod-batman-adv Version: 2.6.39.4+2011.3.0-1 Depends: kernel (= 2.6.39.4-1), kmod-crc16 Size: 74121 Description: B.A.T.M.A.N. advanced is a kernel module which allows to build layer 2 mesh networks. This package contains the version 2011.3.0 of the kernel module plus its user space configuration & managerment tool batctl.
Package: batmand Version: r1439-1 Depends: libpthread, kmod-tun Size: 37577 Description: B.A.T.M.A.N. layer 3 routing daemon
Compiling batman-adv and Openwrt
Get the source code
→ build
The first step is to download the required OpenWrt and batman source code. For this guide I am using OpenWrt backfire 10.03. Make sure you have the following packages installed: gcc, binutils, patch, bzip2, flex, bison, make, gettext, pkg-config, unzip, libz-dev, libc headers and subversion.
Checkout OpenWrt backfire:
svn co svn://svn.openwrt.org/openwrt/branches/backfire cd backfire/
Update and install required packages
Install luci (optional) and batman-adv:
./scripts/feeds update ./scripts/feeds install -a -p luci ./scripts/feeds install kmod-batman-adv-kernelland
Compile the images
To configure the compilation options type:
make menuconfigSelect "Target System" and press enter to select your applicable platform (more information can be found on the OpenWrt Table of Hardware). Then go to: Image Configuration → Kernel Modules → Network Support. Select kmod-batman-adv-kernelland to be installed as part of the image by selecting it and pressing the spacebar until there is a asterisk ('*') next to it. Also make sure that batctl is selected with an asterisk. Press Escape until you are asked to save your configuration and select 'Yes'.
Compile your new images by typing:
makeAlternatively if an error occurs, type the following to get debugging output:
make V=99
Install and configure OpenWrt on your device
Refer to the applicable documentation for your device in the Table of Hardware. Once installed set a default password and login via ssh:
telnet 192.168.1.1
inbox/mesh.batman.txt · Last modified: 2011/10/05 23:38 by orca