public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
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.] 2012.2 OGMs over ethernet issue?
Date: Mon, 30 Jul 2012 12:31:17 +0200	[thread overview]
Message-ID: <20120730103117.GA28562@pandem0nium> (raw)
In-Reply-To: <CAHD-aqK68-74CHsL4FUhAXdxJcbJjvdJcGEh6z9XQt5zXvvFGw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

Hello Guido,

On Sat, Jul 28, 2012 at 03:34:29PM -0300, Gui Iribarren wrote:
> On Wed, Jul 25, 2012 at 5:34 PM, Simon Wunderlich
> >
> > OK, so you say that it doesn't work when you simply add eth0 batctl, but it works
> > with the bridge?
> Exactly.
> With a caveat: turns out adding plain eth0 (no vlans involved) works
> fine as expected, the problem arises when using vlans.
> 
> > What is the minimal setup which is not working, two routers
> > and one cable?
> I just reproduced it minimally: two routers, one cable, no adhoc, no
> bla2, no gw_mode, identical setup in both routers.
> enabling bla2 makes no difference.
> 
> http://pastebin.com/y1JwMaDM
> 
> A=f8:d1:11:54:50:f9
> B=f8:d1:11:3b:78:df
> 
> "A" batctl td shows incoming OGMs from neighbour "B",
> but batctl ll doesn't react.
> 
> viceversa for "B".
> 
> ping6 works fine over eth0.2 between A and B
> 
> adding a simple "option type 'bridge'" on both routers solves the OGM
> issue, like so:
> 
> config interface 'eth0_2'
> 	option type 'bridge'
> 	option ifname 'eth0.2'
> 	option proto 'none'
> 	option mtu '1528'
> 
> with this, eth0.2 is included in br-eth0_2, and bat0 manages
> br-eth0_2... OGMs do come through correctly, and "batctl o" shows
> neighbour on both sides.
> 
> all in all, workaround is not complicated (in fact a one-liner) but i
> find it curious that without the bridge thingy, batctl td catches the
> OGMs, yet batman doesn't recognize them.
> I haven't tinkered with vlans before, so i might be misunderstanding
> how they should work.
> 

Thanks for working that out. I've just tried out VLANs on Ethernet with
BATMAN myself, and it worked well here - so I can't reproduce it by simply
using VLANs.

Another cause of the fault may be the VLAN stuff in OpenWRT, as this is not
a "real" VLAN but just a way to address the ports on your box. I have not
much experience with that, but I've heard funny things about it. ;) Have you
tried changing the VLAN config? E.g. changing ports '0t 2t' for eth0.2 to
'0t 2' (to remove tagging)? 

Do you have the same problem on other types of devices? (Maybe the internal
switch is acting weird)

Maybe some else has more experience on Switch/VLAN-config than me and can
have a look at that config. :) http://pastebin.com/y1JwMaDM

As I said, Ethernet/VLANs work fine for me, and I know other people running
batman over Ethernet-VLANs as well ...

Cheers
	Simon

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2012-07-30 10:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-07  3:37 [B.A.T.M.A.N.] 2012.2 OGMs over ethernet issue? Guido Iribarren
2012-07-08 10:09 ` Simon Wunderlich
2012-07-23  7:20   ` Gui Iribarren
2012-07-25 20:34     ` Simon Wunderlich
2012-07-25 21:11       ` Gioacchino Mazzurco
2012-07-25 22:04         ` Sven Eckelmann
2012-07-25 22:16           ` Gioacchino Mazzurco
2012-07-28 18:34       ` Gui Iribarren
2012-07-30 10:31         ` Simon Wunderlich [this message]
2012-09-13 16:10           ` Gui Iribarren

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=20120730103117.GA28562@pandem0nium \
    --to=simon.wunderlich@s2003.tu-chemnitz.de \
    --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