All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Linus Lüssing" <linus.luessing@c0d3.blue>
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.] MTU for batman-adv w/ vlans?
Date: Sat, 12 Nov 2016 11:46:24 +0100	[thread overview]
Message-ID: <20161112104624.GE3151@otheros> (raw)
In-Reply-To: <CAA_JP8UVeCpytzkirob9WsOA0BOkhVgZyA-Wa1=p+PV0hgRx8w@mail.gmail.com>

On Fri, Nov 11, 2016 at 07:26:36AM -0700, dan wrote:
> I'm not 100% clear on how batman-adv works with vlans, so excuse me if
> I've taken a wrong path.
> 
> 
> I have a small 2 radio mesh node with 1 ethernet port for non-mesh
> access.  wlan0 and wlan1 in bat0, bat0 and eth0 in mesh-bridge.
> 
> MTU is 1532 on WLAN0.
> 
> If I want a VLAN to pass through the eth0 interface as if it were
> trunk, what needs to be done?
> my thought was, increase WLAN0 MTU to 1536 and eth0 to 1504....

(I had a similar MTU/fragmentation discussion with Marek recently, so
now I can pretend to be smart :D)

For BATMAN_V, if you want VLANs to pass without fragmentation,
then you need to increase the MTU of WLAN0 *and* eth0 to 1536, so +4
bytes compared to what "dmesg" currently suggests, yes.

If you do not care about fragmentation, then the default 1500
should "just work", both for wlan0 and eth0, too.


> will that work?  or do I need to create a vlan  bat0.1 and eth0.1 and
> bridge them?

Depends on what you want. Do bridged-in clients do the
VLAN-tagging on their own? Or do you want the mesh node to tag incoming,
not yet tagged frames?

Or do you just want to split one physical wire into multiple, virtual
ones? Then you'd need VLANs on eth0 (and would add eth0.1 to
batman-adv instead of eth0).


I guess, the question is, what is the original intent. What made you
you think about using VLANs in the first place?

Regards, Linus

      reply	other threads:[~2016-11-12 10:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-11 14:26 [B.A.T.M.A.N.] MTU for batman-adv w/ vlans? dan
2016-11-12 10:46 ` Linus Lüssing [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=20161112104624.GE3151@otheros \
    --to=linus.luessing@c0d3.blue \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.