[Battlemesh] Problems to add Batman-adv in wlan0 Nanostation M5

Roger Baig ViƱas roger.baig at gmail.com
Wed Aug 1 10:31:55 CEST 2012


Hi,

FYI the discussion is taking place on BATMAN mailing list [1]

[1] https://lists.open-mesh.org/pipermail/b.a.t.m.a.n/2012-July/007816.html

On 31 July 2012 21:30, Esteban Municio <emunicio at gmail.com> wrote:
> Hi all
>
> I thought that the battlemesh's people maybe could me help
>
> I`m working on a academic develop project for improve the networks in
> rural areas in Peru. We are doing some test and comparing routing
> protocols with 6 Nanostation M5 for create a mesh network.
>
> I tried Commotion software with OLSR and all was Ok. Now, we are
> testing BATMAN, with OpenWRT and batman-adv module, but I have some
> problems.
>
> I have compiled OpenWrt Backfire r32751 (Load: 0.09 0.10 0.05) and
> installed batman-adv with opkg following this
> http://wiki.openwrt.org/inbox/mesh.batman
>
> When I put:
> lsmod | grep batman
> I get
> batman_adv             67936  0
>
> and seems to be load in the kernel, but I have that result with the
> following command:
>
> root at OpenWrt:~# batctl o
> Error - the folder '/sys/kernel/debug//batman_adv/bat0/' was not found
> within the sys filesystem
> Please make sure that the batman-adv kernel module is loaded
>
> Its very weird that the path is wrong...(for the ...debug//batman_adv...)
>
> But when I try to add the interface wlan0 for activate batman in it,
> the Nanostation remains locked and i need to reboot.
> I have tried this with:
>
> echo bat0 > /sys/class/net/wlan0/batman_adv/mesh_iface
>
> and
>
> batctl if add wlan0
>
> with the same bad result.
> What am i doing wrong?
>
> That are my configuration files:
>
> root at OpenWrt:~# cat /etc/config/network
> config interface loopback
>         option ifname   lo
>         option proto    static
>         option ipaddr   127.0.0.1
>         option netmask  255.0.0.0
>
> config interface lan
>         option ifname   eth0
>         option type     bridge
>         option proto    static
>         option ipaddr   192.168.1.1
>         option netmask  255.255.255.0
>
> #config interface wan
> #       option ifname   eth1
> #       option proto    dhcp
>
>
> config interface wan
>         option ifname   eth1
>         option proto    static
>         option ipaddr   "my ip public for internet access"
>         option netmask  255.255.255.192
>         option gateway  "my ip public gateway"
>         option dns      8.8.8.8
> ----------------------------------------
>
> root at OpenWrt:~# cat /etc/config/wireless
>
> config 'wifi-device' 'radio0'
>         option 'type' 'mac80211'
>         option 'macaddr' '00:27:22:52:71:a7'
>         option 'hwmode' '11na'
>         option 'htmode' 'HT20'
>         list 'ht_capab' 'SHORT-GI-40'
>         list 'ht_capab' 'TX-STBC'
>         list 'ht_capab' 'RX-STBC1'
>         list 'ht_capab' 'DSSS_CCK-40'
>         option 'channel' '161'
>         option 'txpower' '0'
>         option 'country' 'US'
>
> config 'wifi-iface'
>         option 'device' 'radio0'
>         option 'network' 'lan'
>         option 'ssid' 'OpenWrt'
>         option 'encryption' 'none'
>         option 'mode' 'adhoc'
>         option 'bssid' '00:27:22:52:71:A7'
>
> ---------------------------------------------------
> root at OpenWrt:~# iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> eth1      no wireless extensions.
>
> br-lan    no wireless extensions.
>
> wlan0     IEEE 802.11an  ESSID:"OpenWrt"
>           Mode:Ad-Hoc  Frequency:5.805 GHz  Cell: 00:27:22:52:71:A7
>           Tx-Power=3 dBm
>           RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:on
>
> -----------------------------------------------------
> root at OpenWrt:~# ifconfig
> br-lan    Link encap:Ethernet  HWaddr 00:27:22:53:71:A7
>           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:9489 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:9584 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:989861 (966.6 KiB)  TX bytes:3510637 (3.3 MiB)
>
> eth0      Link encap:Ethernet  HWaddr 00:27:22:53:71:A7
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:9511 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:9597 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:1124441 (1.0 MiB)  TX bytes:3512820 (3.3 MiB)
>           Interrupt:4
>
> eth1      Link encap:Ethernet  HWaddr 00:27:22:53:71:A8
>           inet addr:"my ip public"  Bcast:"my ip broadcast broadcast"
> Mask:255.255.255.192
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:13086 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:4552 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:4041054 (3.8 MiB)  TX bytes:797392 (778.7 KiB)
>           Interrupt:5
>
> lo        Link encap:Local Loopback
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:16436  Metric:1
>           RX packets:16 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:1556 (1.5 KiB)  TX bytes:1556 (1.5 KiB)
>
> wlan0     Link encap:Ethernet  HWaddr 00:27:22:52:71:A7
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:32
>           RX bytes:0 (0.0 B)  TX bytes:1526 (1.4 KiB)
>
> ------------------------
>
> I have noticed that i have not the bat0 interface created,is it normal?
> Do i need create another aditional interface like ath0?
>
> I have been following that manuals:
> http://pizza.hskflashcards.com/index.php?page=B.A.T.M.A.N.+Advanced+on+OpenWrt+How-To
>
> http://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide
>
> Any help o comment?
> Do you recomend me to change to batmand instead?
> Do you know if there is any BATMAN implementation for a mesh network
> of Nanostation M5, easier to install and manipulate?
>
> Thanks
>
> --
> Esteban
> _______________________________________________
> Battlemesh mailing list
> Battlemesh at ml.ninux.org
> http://ml.ninux.org/mailman/listinfo/battlemesh



-- 
roger



More information about the Battlemesh mailing list