public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Itamar <itamar@itamar.org>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] IP connection lost when a node is rebooted
Date: Sun, 23 Mar 2014 10:18:51 +0200	[thread overview]
Message-ID: <532E98EB.6070201@itamar.org> (raw)
In-Reply-To: <53267792.8080102@meshcoding.com>

Thanks all for your support,
U have figured out the issue. I is indeed related to a driver issue (so 
I now understand).
grinding my teeth trying to debug I have realized that when I power 
cycle the raspberry-pi the link returns. Whereas I do a reboot via 
console, the link refuses to start. The issue is probably related to the 
wifi card not being initialized properly when the driver is loaded. What 
I did to resolve is simple. I have added some extra lines to to 
initialization script of the wireless device;

ifconfig ra0 up
ifconfig ra0 down
ifconfig ra0 up
iwconfig ra0 mode monitor

And after this "morning sport activity" to the interface I continued as 
usual, setting it to ad-hoc and adding it to the bat0 device.

The interface I use is a cheap ralink 7601 chipset usb wifi 
(idVendor=148f, idProduct=7601). But maybe this may help whoever 
stumbles into something similar.

Thanks for the help!
Itamar

On 14-03-17 06:18 AM, Antonio Quartulli wrote:
>
> On 16/03/14 14:16, Itamar wrote:
>> I have compiled both the kernel module and batctl from source (2014.1.0).
>> The problem remains. Whenever I reboot a node, its IP is never reachable
>> from the network and the network can not be reached by it.
>>
>> Things I have tried:
>>
>> * DAT enabled
>> * DAT Disabled
>> * DAT not compiled (ticked "n" in the Makefile)
>>
>> Of course, the tests were performed when all nodes in the mesh were with
>> the consistent configuration and never mixed.
>>
>> Another curious thing I have seen is that when looking at a tcpdump (via
>> batctl) I could indeed see ARP requests to the pinged IP (the tcpdump
>> running on the node hosting the pinged IP) but the node never replies.
>>
> Have you seen if the ARP request makes its way to the other host? (e.g.
> using tcpdump on bat0 to check that the packet is getting delivered).
>
> Then check if the ARP reply is at least sent. If so, check where it gets
> lost.
>
>
> Cheers,
>
>
>


      reply	other threads:[~2014-03-23  8:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-13  9:24 [B.A.T.M.A.N.] IP connection lost when a node is rebooted Itamar Landsman
2014-03-13 11:00 ` Antonio Quartulli
2014-03-13 12:20   ` Itamar Landsman
2014-03-13 13:42     ` Antonio Quartulli
2014-03-13 14:51       ` Itamar Landsman
2014-03-13 16:21         ` Harms, Hannes
2014-03-13 17:53           ` Andrew Lunn
2014-03-16 13:16         ` Itamar
2014-03-16 23:59           ` Nicolás Echániz
2014-03-17  4:18           ` Antonio Quartulli
2014-03-23  8:18             ` Itamar [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=532E98EB.6070201@itamar.org \
    --to=itamar@itamar.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox