public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* Node AP's
@ 2020-02-27 15:13 Zach Barnett
  2020-02-27 16:11 ` Sven Eckelmann
  0 siblings, 1 reply; 2+ messages in thread
From: Zach Barnett @ 2020-02-27 15:13 UTC (permalink / raw)
  To: b.a.t.m.a.n

I looking for clarification about the following question

How can I connect non-mesh clients to my batman-adv network ?
Does this mean that for an existing batman node to allow non-mesh
clients to join (I.E. cell phone, wifi camera, etc..), then 2
interfaces are required?

For example, if I have a pi-zero W in a wooded area, and I want a
camera to connect to it, then do I need to add an additional usb
network adapter to the Pi.  One Interface for the Bat0 Mesh and One
interface an an entry point for non-mesh clients.


any information is greatly appreciated.

Thanks
Zach

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Node AP's
  2020-02-27 15:13 Node AP's Zach Barnett
@ 2020-02-27 16:11 ` Sven Eckelmann
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Eckelmann @ 2020-02-27 16:11 UTC (permalink / raw)
  To: b.a.t.m.a.n; +Cc: Zach Barnett

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

On Thursday, 27 February 2020 16:13:48 CET Zach Barnett wrote:
> I looking for clarification about the following question
> 
> How can I connect non-mesh clients to my batman-adv network ?

Bridge (easiest way) or route the traffic from non-mesh interface to the 
batadv interface (and vice versa). [1]


> Does this mean that for an existing batman node to allow non-mesh
> clients to join (I.E. cell phone, wifi camera, etc..), then 2
> interfaces are required?

Not necessarily but in most situation you want to use different (operation) 
modes for sending batman-adv and non-batman-adv traffic over wifi. But it is 
possible to use the same link layer interface. This is often the case when you 
want to use ethernet for transporting the batman-adv traffic and the client 
traffic.

Just keep in mind that you cannot directly bridge an interface and have it at
the same time as batadv slave interface. So you have to split this interface
up somehow.

For ethernet, it is recommended to put the batman-adv traffic in something
like V(X)LAN on top of the ethernet device.

Other option could also be to use a macvlan on top of the ethernet interface - 
your ethernet interface just needs to support promiscious mode for receiving 
and allow to send with a different mac address. Then you have basically two 
virtual ethernet interfaces.

But you could even create fancy things with veth pairs. Put one end in the 
same bridge as the actual real ethernet interface. And then add the other end 
as slave to the batadv interface. And then you can put the batadv interface in 
the first bridge. You should most likely add some ebtables filter for 0x4305 
ethernet frames at the correct positions. But I would call this
"experimental".

Just keep in mind that all the bridging will not work with client mode
interfaces (non-AP STA interfaces in infrastructure mode).

> For example, if I have a pi-zero W in a wooded area, and I want a
> camera to connect to it, then do I need to add an additional usb
> network adapter to the Pi.  One Interface for the Bat0 Mesh and One
> interface an an entry point for non-mesh clients.

I hope you are not talking about wifi usb network adapters. Because they are 
(often/always) quite shitty in non-infrastructure modes. And also often
shitty in infrastructure mode in the AP role.

But regarding wifi PHYs under Linux - they usually support multiple virtual
interfaces on the same PHY. Just check the interface combinations
information from "iw phy"

Kind regards,
	Sven

[1] https://www.open-mesh.org/projects/batman-adv/wiki/Faq#How-can-I-connect-non-mesh-clients-to-my-batman-adv-network-

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-27 16:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-27 15:13 Node AP's Zach Barnett
2020-02-27 16:11 ` Sven Eckelmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox