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.
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...
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...
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... - on OpenWrt 19.07: https://www.open-mesh.org/projects/batman-adv/wiki/Batman-adv-openwrt-config...
Kind regards, Sven
b.a.t.m.a.n@lists.open-mesh.org