Version used {{{ _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M Backfire (10.03, r21649) -------------------------- * 1/3 shot Kahlua In a shot glass, layer Kahlua * 1/3 shot Bailey's on the bottom, then Bailey's, * 1/3 shot Vodka then Vodka. --------------------------------------------------- }}} Packages installed on each node {{{ babeld - 1.0.1-3 base-files - 43-r21649 batmand - r1439-1 bmx - r1683-1 bmx-uci-config - r1683-1 busybox - 1.15.3-2 dnsmasq - 2.52-4 dropbear - 0.52-4 hotplug2 - 1.0-beta-2 impd4e - rf5d3965-1 ip - 2.6.29-1-2 kernel - 2.6.30.10-1 kmod-batman-adv-kernelland - 2.6.30.10+0.2.1-1 kmod-ipv6 - 2.6.30.10-1 kmod-madwifi - 2.6.30.10+r3314-4 kmod-tun - 2.6.30.10-1 libc - 0.9.30.1-43 libgcc - 4.3.3+cs-43 libnl-tiny - 0.1-1 libpcap - 1.0.0-2 libpthread - 0.9.30.1-43 librt - 0.9.30.1-43 libuci - 12012009.5-2 mtd - 12 olsrd - 0.6.0-1 olsrd-mod-txtinfo - 0.6.0-1 opkg - 513-2 ptpd - 1.0.0-1 swconfig - 6 uci - 12012009.5-2 udevtrigger - 106-1 wireless-tools - 29-4 wpad-mini - 20100418-1 }}} Configuration script used to configure all protocols at the same time {{{ set -a HOSTNAME="@PARAM1@" SUFFIX="@PARAM2@" CHANNEL="11" ESSID="WBMv3-Test-1" BSSID="02:02:CA:FE:CA:FE" sysctl -w kernel.hostname=$HOSTNAME uci set system.@system[0].hostname=$HOSTNAME uci set network.wlan=interface uci set network.wlan.proto=static uci set network.wlan.ipaddr=10.10.100.$SUFFIX uci set network.wlan.netmask=255.255.255.0 uci set network.zlan=alias uci set network.zlan.interface=lan uci set network.zlan.proto=static uci set network.zlan.ipaddr=10.10.99.$SUFFIX uci set network.zlan.netmask=255.255.255.0 uci set wireless.wifi0.channel=$CHANNEL uci set wireless.wifi0.disabled=0 uci set wireless.wifi0.hwmode=11g uci set wireless.wifi0.txpower=20 uci set wireless.@wifi-iface[0].network=wlan uci set wireless.@wifi-iface[0].mode=adhoc uci set wireless.@wifi-iface[0].ssid=$ESSID uci set wireless.@wifi-iface[0].encryption=none uci set wireless.@wifi-iface[0].bssid=$BSSID uci set wireless.@wifi-iface[0].rate=54M uci set wireless.@wifi-iface[0].bgscan=0 # batmand uci set network.wlan1=alias uci set network.wlan1.interface=wlan uci set network.wlan1.proto=static uci set network.wlan1.ipaddr=10.10.101.$SUFFIX uci set network.wlan1.netmask=255.255.255.0 uci set batmand.general.interface=ath0:1 # babel uci set network.wlan2=alias uci set network.wlan2.interface=wlan uci set network.wlan2.proto=static uci set network.wlan2.ipaddr=10.10.102.$SUFFIX uci set network.wlan2.netmask=255.255.255.0 uci set babeld.wlan2=interface uci set babeld.wlan2.ignore=false uci set babeld.filter1=filter uci set babeld.filter1.type=redistribute uci set babeld.filter1.local=true uci set babeld.filter1.ip='10.10.102.0/24' uci set babeld.filter1.action=allow uci set babeld.filter2=filter uci set babeld.filter2.type=redistribute uci set babeld.filter2.local=true uci set babeld.filter2.ip='fdba:1943:e753::/64' uci set babeld.filter2.action=allow uci set babeld.filter3=filter uci set babeld.filter3.type=redistribute uci set babeld.filter3.local=true uci set babeld.filter3.action=deny uci set babeld.filter4=filter uci set babeld.filter4.type=in uci set babeld.filter4.ip='10.10.102.0/24' uci set babeld.filter4.action=allow uci set babeld.filter5=filter uci set babeld.filter5.type=in uci set babeld.filter5.ip='fdba:1943:e753::/64' uci set babeld.filter5.action=allow uci set babeld.filter6=filter uci set babeld.filter6.type=in uci set babeld.filter6.action=deny # olsr uci set network.wlan3=alias uci set network.wlan3.interface=wlan uci set network.wlan3.proto=static uci set network.wlan3.ipaddr=10.10.103.$SUFFIX uci set network.wlan3.netmask=255.255.255.0 rm -f /etc/config/olsrd touch /etc/config/olsrd uci add olsrd olsrd uci set olsrd.@olsrd[0].IpVersion=4 uci set olsrd.@olsrd[0].DebugLevel=0 uci add olsrd LoadPlugin uci set olsrd.@LoadPlugin[0]=LoadPlugin uci set olsrd.@LoadPlugin[0].library=olsrd_txtinfo.so.0.1 uci set olsrd.@LoadPlugin[0].accept="0.0.0.0" uci set olsrd.@LoadPlugin[0].port="10001" uci add olsrd Interface uci set olsrd.@Interface[0]=Interface uci set olsrd.@Interface[0].interface=wlan3 uci set olsrd.@Interface[0].Ip4Broadcast=10.10.103.255 # batman-adv #uci set network.wlan4=alias #uci set network.wlan4.interface=wlan #uci set network.wlan4.proto=static #uci set network.wlan4.ipaddr=$IP4 #uci set network.wlan4.netmask=255.255.255.0 uci set network.wlan4=interface uci set network.wlan4.ifname=bat0 uci set network.wlan4.proto=static uci set network.wlan4.ipaddr=10.10.104.$SUFFIX uci set network.wlan4.netmask=255.255.255.0 uci set batman-adv.bat0.interfaces=ath0 # bmx uci set network.wlan5=alias uci set network.wlan5.interface=wlan uci set network.wlan5.proto=static uci set network.wlan5.ipaddr=10.10.105.$SUFFIX uci set network.wlan5.netmask=255.255.255.0 uci set bmx.@dev[0].dev=ath0:4 uci commit [ -x /etc/init.d/babeld ] && /etc/init.d/babeld enable [ -x /etc/init.d/batman-adv ] && /etc/init.d/batman-adv enable [ -x /etc/init.d/batmand ] && /etc/init.d/batmand enable [ -x /etc/init.d/bmx ] && /etc/init.d/bmx enable [ -x /etc/init.d/olsrd ] && /etc/init.d/olsrd enable [ -x /etc/init.d/dnsmasq ] && /etc/init.d/dnsmasq disable [ -x /etc/init.d/impd4e ] && /etc/init.d/impd4e disable }}}