I'm creating a mesh network with B.A.T.M.A.N..
The version is 2011.4.0 in host A, 2012.3.0 in host B. I've setup the network as explained here.
I can ping
bat0 interfaces if the connection is done with ethernet cable:
# Host A ifconfig eth2 mtu 1528 batctl if add eth2 ifconfig bat0 192.168.6.6 # Host B ifconfig eth0 mtu 1528 batctl if add eth0 ifconfig bat0 192.168.6.7 ping 192.168.6.6 ## Ping ok
If i switch to wireless adhoc, without security, this doesn't work.
# Host A ifconfig eth1 mtu 1528 batctl if add eth1 ifconfig bat0 192.168.6.6 # Host B ifconfig wlan0 mtu 1528 batctl if add wlan0 ifconfig bat0 192.168.6.7 ping 192.168.6.6 ## No ping!!!
I'm sure the wireless connection is working because I can ping hosts if I assign ip to wireless interfaces:
# Host A ifconfig eth1 192.168.99.6 # Host B ifconfig wlan0 192.168.99.7 ping 192.168.99.6 # Ping ok
I've tried to setup wireless with
iwconfig and with
wpa_supplicant but the result doesn't change.
After some investigations in logs, I've found these interesting lines (host B) repeating:
[ 7267780] Received BATMAN packet via NB: 90:4c:e5:__:__:__, IF: wlan0 [00:0b:81:__:__:__] (from OG: 90:4c:e5:__:__:__, via prev OG: 90:4c:e5:__:__:__, seqno 2, ttvn 1, crc 53338, changes 1, td 255, TTL 50, V 14, IDF 0) [ 7267780] updating last_seqno: old 1, new 2 [ 7267780] bidirectional: orig = 90:4c:e5:__:__:__ neigh = 90:4c:e5:__:__:__ => own_bcast = 0, real recv = 2, local tq: 0, asym_penalty: 24, total tq: 0 [ 7267780] Forwarding packet: tq: 0, ttl: 49 [ 7267780] Forwarding packet: rebroadcast neighbor packet with direct link flag
So... host B is receiving something from host A! But ping isn't working and
batctl o says "No batman nodes in range ..."