Node Configuration

Node list

# MAC,HOSTNAME,IP-SUFFIX,CHANNEL,BSSID,ESSID,TXPOWER
00:18:84:13:52:18,test1,1,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:13:58:A0,test2,2,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:18:1F:A0,test3,3,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:14:C6:20,test4,4,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:52:38,test5,5,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:12:9C:94,test6,6,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:18:8A:A0,test7,7,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:23:97:AC,test8,8,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:4D:0C,test9,9,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:7E:F4,test10,10,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:30:40,test11,11,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:16:C7:50,test12,12,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:8F:38,test13,13,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:01:00,test14,14,1,02:02:00:04:00:01,WBMv4-Test1-Net1,1
00:18:84:11:E1:6C,test15,15,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:44:E8,test16,16,1,02:02:00:04:00:01,WBMv4-Test1-Net1,1
00:18:84:11:BE:04,test17,17,11,02:02:00:04:00:03,WBMv4-Test1-Net3,1
00:18:84:11:8A:E4,test18,18,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:1A:CD:C8,test19,19,11,02:02:00:04:00:03,WBMv4-Test1-Net3,1
00:18:84:2A:11:20,test20,20,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:14:B7:70,test21,21,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:12:B1:80,test22,22,11,02:02:00:04:00:03,WBMv4-Test1-Net3,1
00:18:84:11:30:38,test23,23,1,02:02:00:04:00:01,WBMv4-Test1-Net1,1
00:18:84:13:79:B8,test24,24,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:1B:88:AC,test25,25,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:22:7C,test26,26,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:27:7E:E0,test27,27,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:46:A8,test28,28,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:FB:14,test29,29,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:3C:64,test30,30,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:15:39:9C,test31,31,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:13:2D:E0,test32,32,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:28:90:78,test33,33,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:25:A4:C8,test34,34,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:26:61:48,test35,35,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:25:69:50,test36,36,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:19:5B:64,test37,37,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:1A:4C:70,test38,38,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FE:34,test39,39,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FE:4C,test40,40,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FB:C0,test41,41,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FD:E0,test42,42,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FE:4E,test43,43,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FF:98,test44,44,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FD:B0,test45,45,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FC:32,test46,46,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:A4:14,test47,47,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:73:F8,test48,48,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:21:04:98,test49,49,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:11:CF:E0,test50,50,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:24:B8:24,test51,51,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FC:DE,test52,52,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FC:46,test53,53,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:A5:84:D8,test54,54,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:12:F7:2C,test55,55,1,02:02:00:04:00:01,WBMv4-Test1-Net1,1
00:18:84:29:DA:08,test56,56,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:22:42:84,test57,57,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:13:91:1C,test58,58,11,02:02:00:04:00:03,WBMv4-Test1-Net3,1
00:18:84:11:E1:68,test59,59,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:12:CF:7F:FE:90,test60,60,6,02:02:00:04:00:02,WBMv4-Test1-Net2,1
00:18:84:10:96:08,test61,61,11,02:02:00:04:00:03,WBMv4-Test1-Net3,1
00:18:84:12:F0:14,test62,62,11,02:02:00:04:00:03,WBMv4-Test1-Net3,1
00:18:84:11:60:04,test63,63,1,02:02:00:04:00:01,WBMv4-Test1-Net1,1
00:18:84:27:19:5C,test64,64,1,02:02:00:04:00:01,WBMv4-Test1-Net1,1

Node config snippet

@PARAM1@, @PARAM2@, ... @PARAM6@ are replaced with actual parameter values from the node list

# all-in-one config snippet for WBMv4 test case 1  
set -a

HOSTNAME="@PARAM1@"
SUFFIX="@PARAM2@"

CHANNEL="@PARAM3@"
BSSID="@PARAM4@"
ESSID="@PARAM5@"
TXPOWER="@PARAM6@"

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=$TXPOWER

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 network.zlan1=alias
uci set network.zlan1.interface=lan
uci set network.zlan1.proto=static
uci set network.zlan1.ipaddr=10.10.201.$SUFFIX
uci set network.zlan1.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 network.zlan2=alias
uci set network.zlan2.interface=lan
uci set network.zlan2.proto=static
uci set network.zlan2.ipaddr=10.10.202.$SUFFIX
uci set network.zlan2.netmask=255.255.255.0

uci set babeld.wlan2=interface
uci set babeld.wlan2.ignore=false

uci set babeld.zlan2=interface
uci set babeld.zlan2.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

uci set network.zlan3=alias
uci set network.zlan3.interface=lan
uci set network.zlan3.proto=static
uci set network.zlan3.ipaddr=10.10.203.$SUFFIX
uci set network.zlan3.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 set olsrd.@olsrd[0].LinkQualityAlgorithm="etx_ffeth"
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=255.255.255.255
uci add olsrd Interface
uci set olsrd.@Interface[1]=Interface
uci set olsrd.@Interface[1].interface=zlan3
uci set olsrd.@Interface[1].Ip4Broadcast=255.255.255.255
uci set olsrd.@Interface[1].Mode="ether"


# 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 network.wlan4.mtu=1465

uci set network.zlan4=alias
uci set network.zlan4.interface=lan
uci set network.zlan4.proto=static
uci set network.zlan4.ipaddr=10.10.204.$SUFFIX
uci set network.zlan4.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 network.zlan5=alias
uci set network.zlan5.interface=lan
uci set network.zlan5.proto=static
uci set network.zlan5.ipaddr=10.10.205.$SUFFIX
uci set network.zlan5.netmask=255.255.255.0

uci set bmx6.mesh_1=dev
uci set bmx6.mesh_1.dev=ath0:4
uci set bmx6.mesh_2=dev
uci set bmx6.mesh_2.dev=br-lan:6

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/bmx6 ] && /etc/init.d/bmx6 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/firewall ] && /etc/init.d/firewall disable
[ -x /etc/init.d/impd4e ] && /etc/init.d/impd4e disable
[ -x /etc/init.d/ptpd.init ] && /etc/init.d/ptpd disable

BattleMeshV4/NodeConfig (last edited 2011-03-19 18:03:02 by Nico)