* Issue with bridging LAN and mesh network
@ 2020-02-16 18:20 Emilie Meyer
2020-02-16 18:39 ` Sven Eckelmann
0 siblings, 1 reply; 4+ messages in thread
From: Emilie Meyer @ 2020-02-16 18:20 UTC (permalink / raw)
To: b.a.t.m.a.n
Hi all
I have tried to set up a mesh network according to the following tutorial:
https://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide
Everything goes well until the steps for creating a bridge between
eth0 and bat0.
When running the command as shown below, it fails.
root@OpenWrt:~# ip link set eth0 master mesh-bridge
ip: either "dev" is duplicate, or "master" is garbage
I suspect that the ip version (BusyBox v1.28.4) I got does not support bridging?
Sincerely hope that someone can please guide me to solve this issue.
This is my HW/SW:
HW: TP-Link TL-WR841N and Ubiquiti M2 Bullet
OpenWrt 18.06.4, r7808-ef686b7292
As you see I have not the newest HW so that's the reason why I have
initially tried to use OpenWrt version 18.06.4 and not the newest
version.
Anyone that have experience with Batman on these wifi devices, please share.
Many thanks in advance for your help.
--
Regards
Emilie
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue with bridging LAN and mesh network
2020-02-16 18:20 Issue with bridging LAN and mesh network Emilie Meyer
@ 2020-02-16 18:39 ` Sven Eckelmann
2020-02-21 22:41 ` Emilie Meyer
0 siblings, 1 reply; 4+ messages in thread
From: Sven Eckelmann @ 2020-02-16 18:39 UTC (permalink / raw)
To: b.a.t.m.a.n; +Cc: Emilie Meyer
[-- Attachment #1: Type: text/plain, Size: 784 bytes --]
On Sunday, 16 February 2020 19:20:41 CET Emilie Meyer wrote:
[...]
> root@OpenWrt:~# ip link set eth0 master mesh-bridge
> ip: either "dev" is duplicate, or "master" is garbage
[...]
> OpenWrt 18.06.4, r7808-ef686b7292
[...]
The problem here is that the networking/libiproute/iplink.c from busybox in
OpenWrt 18.04.x has the code for the "master" interface configuration
disabled. You have various options:
* switch to the current release OpenWrt 19.07
* switch from busybox's iplink applet to the package ip-full
* use netifd to configure the interfaces [1]
* use brctl to configure the bridge slave interfaces
brctl addif mesh-bridge eth0
Kind regards,
Sven
[1] https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config#Batman-adv-201300-till-20190-2
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue with bridging LAN and mesh network
2020-02-16 18:39 ` Sven Eckelmann
@ 2020-02-21 22:41 ` Emilie Meyer
2020-02-22 7:18 ` Sven Eckelmann
0 siblings, 1 reply; 4+ messages in thread
From: Emilie Meyer @ 2020-02-21 22:41 UTC (permalink / raw)
To: Sven Eckelmann; +Cc: b.a.t.m.a.n
Hi Sven and thanks for your kindness helping me out.
I have spent some time trying a few of your suggestions. In my case
using the brctl commands was the easiest and most successful.
However, what I've learned so far is that using brctl and other CLI
commands according to
https://www.open-mesh.org/projects/batman-adv/wiki/Quick-start-guide
is not a persistent solution. Each time the router is restarted, all
previous configurations are lost.
I guess one way to solve this is by using UCI configurations, but I am
not certain how to translate all the steps above to UCI.
I sincerely hope for your kind advice and guidance.
Kind regards
Emilie
On Sun, Feb 16, 2020 at 10:39 AM Sven Eckelmann <sven@narfation.org> wrote:
>
> On Sunday, 16 February 2020 19:20:41 CET Emilie Meyer wrote:
> [...]
> > root@OpenWrt:~# ip link set eth0 master mesh-bridge
> > ip: either "dev" is duplicate, or "master" is garbage
> [...]
> > OpenWrt 18.06.4, r7808-ef686b7292
> [...]
>
> The problem here is that the networking/libiproute/iplink.c from busybox in
> OpenWrt 18.04.x has the code for the "master" interface configuration
> disabled. You have various options:
>
> * switch to the current release OpenWrt 19.07
> * switch from busybox's iplink applet to the package ip-full
> * use netifd to configure the interfaces [1]
> * use brctl to configure the bridge slave interfaces
>
> brctl addif mesh-bridge eth0
>
> Kind regards,
> Sven
>
> [1] https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config#Batman-adv-201300-till-20190-2
--
Regards
Emilie
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Issue with bridging LAN and mesh network
2020-02-21 22:41 ` Emilie Meyer
@ 2020-02-22 7:18 ` Sven Eckelmann
0 siblings, 0 replies; 4+ messages in thread
From: Sven Eckelmann @ 2020-02-22 7:18 UTC (permalink / raw)
To: Emilie Meyer; +Cc: b.a.t.m.a.n
[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]
On Friday, 21 February 2020 23:41:28 CET Emilie Meyer wrote:
[...]
> Each time the router is restarted, all
> previous configurations are lost.
> I guess one way to solve this is by using UCI configurations, but I am
> not certain how to translate all the steps above to UCI.
You should read first some instructions how to configure the wireless and
wired components in OpenWrt. And when you understood this, continue with the
instructions how to configure batman-adv on top of this.
* OpenWrt network configuration
- https://openwrt.org/docs/guide-user/base-system/uci
- https://openwrt.org/docs/guide-user/base-system/basic-networking
- https://openwrt.org/docs/guide-user/network/wifi/basic
- https://openwrt.org/docs/guide-user/network/wifi/bridgedap
- https://openwrt.org/docs/guide-user/network/wifi/dumbap
- https://forum.openwrt.org/
* batman-adv:
- on OpenWrt 18.06:
https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config#Batman-adv-201300-till-20190-2
- on OpenWrt 19.07:
https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config#Batman-adv-20190-3-and-newer
Kind regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-22 7:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-16 18:20 Issue with bridging LAN and mesh network Emilie Meyer
2020-02-16 18:39 ` Sven Eckelmann
2020-02-21 22:41 ` Emilie Meyer
2020-02-22 7:18 ` Sven Eckelmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox