I recently bought 3 "Zyxel t-56" routers to add them as wireless mesh to my network and retire my ASUS mesh, so the migration to fully OpenWRT based network is done
My goals are as follows:
Obviously I want a mesh network
I want to be able to plug uplink cable to any port of any of them and magically have internet on the other 2
Mesh should run over both 5g and 2.5g
In future I want to be able to add isolated wireless network to my setup
To achieve this I read different guides(1, 2, 3, 4) and tried to implement the network like following diagram. At this stage I just have one node working as bridge between wired and wireless but it is easy to replicate on others:
On batman side I can L2 ping every other device using the mac address.
For now 802.11s is only done over 5g
On the 2 wireless only devices I have internet
On the bridge device I can't L3 ping 2 other devices obviously because the bat0 is not connected to the br-lan
When I add bat0 to br-lan it seems that it creates loop between cable connection and batman connection and this causes some outages, and it seems no one can see each other. But when it is not there it seems working
Loop prevention is activated on all batman devices
So I have some fundamental questions:
Do I need batman tunnel between my gateway and bridge devices? It seems/feels redundant to me as we already have lan cable
Why loop prevention is not working as it should?
Any suggestion and advice would be helpful.
Thanks.
ULA
Remove the ULA config from all devices which are not a router. Only the router needs to know.
your bat0 config.
If I understood you correctly: you have 1 router, and serveral ap or switches behind that? But you have copied the same config on every device?
Everything which is not connected to the internet directly, gets option gw_mode 'server' removed. I have no clue what does option defaultroute '0' is doing...
cont.
I'm not sure if it is correct, to use device here...
On my config I just have the interface:
config interface 'bat0_hardif_mesh0'
option proto 'batadv_hardif'
option master 'bat0'
option mtu '2304'
config interface 'bat0_hardif_mesh1'
option proto 'batadv_hardif'
option master 'bat0'
option mtu '2304'
And later I list the bat0.N instance on each VLAN. Which brings me to the next point:
I would expect here either eth or lan bot not both. On x86 I only got the know ethN "ports"/phy-interfaces... However, besides that, you need to add your bat0 interface. With the tag, too: bat0.40
Maybe someone else will give you another pair of eyes. But yeah you can probally start with my point outs...
Thanks for you suggestions: I will try them and let you know
I will remove it
About the second part
yes one x86 box and 3 T-56 devices
All t-56 devices have the same config
It was a mistake on my side will remove from the clients and test. for option defaultroute '0' I think I was testing should be removed
As far as I learned, we need to connect the batman interface to an actual device, so it can do its magic on layer2. In case of mesh part we connect it to mesh in wireless config file and for wired we need to do it explicitly. Can you share you wireless config file. I think you just have two wireless mesh and these two interfaces are connected to them.
For the VLAN part, if I didn't put batman interface to the "management" VLAN it didn't connect and I think it was because bat0 is also bridged with br-lan.
This part is related to the APs. The AP has eth0 which is wan port and eth1 which is a switch and is consist of lan1 to lan4. So adding just the eth1 was not enough.