BATMAN Mesh + VLANs, noob here

hi guys,

i have the following setup

  • Router7530 with DSL
  • AP1200a wired to router
  • AX6000 wired to router

and here comes the new device: AP1200b that should connect with mesh backbone on 2.4Ghz to AX6000 and extend the network. (on Router7530 and AP1200a I deactivated the mesh part again, left it for the future)

also it should serve the VLANs that I am about to utilize for Guests and IoT

i am new to OpenWRT, love it already and think I came a long way by following tutorials and learning. but now I hit a wall.

what I need is to be able to plug the AP1200b into the power and from there being it connect to AX6000 through the backbone 2.4Ghz mesh where batman is waiting to serve VLANs and make everything fine.

i have a bridge device called "Switch" that has Switch.01 lan Switch.20 Guest and Switch.30 IoT

please let me know where my mistake is, as soon as I disconnect and replug the AP1200b I don't get access to Luci because no IP is communicated through VLAN to Router and back with DHCP

AP1200b



AX6000



Router7530


bat0 should not be on your bridge. Instead you need to create a new bat0.1 untagged to vlan1. Do the same to bat0.20 and bat0.30 all untagged to their respective vlans.

Batman mesh communication is handled by the interface using the batadv_hardif protocol...not bat0 itself.

thank you, so like this, on all devices that participate in the mesh right?


looks alright.

If you want batman to take over your entire network then yes...you can add it to every device and just let batman manage your routing but I would not see the benefit of this if you only have a single internet connection. However, if you have multiple internet connections then yes I would configure all my access points with batman and let batman sort out the routing.

1 Like

one last thing is to check your syslog for errors related to packets sent and received on the same interface. This is a mac address related issue. The latest openwrt 23.05 completely solves this by allowing you to set random mac addresses. Prior to this version you will need to manually set unique mac addresses.

1 Like

any advice how to use logread correctly and what to look for?

pretty new to openwrt, still learning

Why do you bridge several bat.xx together?
Why even use mesh when your ap is already wired? None of this makes sense.

3 are wired, 4th is meshed to one of the wired

it makes sense

My Situation:
Router7530 with DSL
AP1200a eth backbone to Router
AX6000 eth backbone to Router AND batman mesh to AP1200b (2.4Ghz)
AP1200b mesh backbone to AX6000 (2.4Ghz)

Sorry, didnt get there was two ap1200. But mesh config makes zero sense.

why? how do I take advance of VLANs then?

If you bridge several bat0.x together then it kinda defeats the purpose don't ya think?

ok now I understand.

hmmmm, i copied this "Switch" idea from a tutorial and thought its a good idea without knowing to deep what I am doing.

afaik I created a virtual managed switch right?
and now I added 3 bat there and segregated them with vlans, didn't I?

Can you point me to that tutorial. I don’t mess around with this on a daily basis so there is chance something’s different now.

But generally mesh is already a virtual switch by design, so no need to make a switch within a switch. You don’t need to create a «managed switch» since the vlan-like functionality is already built-in in batman.
Just bridge the respective bat0.x to the bridge associated with the respective interfaces and batman takes care of the rest.

starting min ~ 4:00

I don't think that tutorial covers the mesh part. Wifi doesn't directly support vlan so that's why batman has it's own vlan functionality which basically works just the same just that bat0 is already the virtual trunk so you don't need to "create a virtual managed switch"

this tutorial was the reason I created the switch in the first place. and don't have 3 br-xxx bridges but one giant switch

after that I added AP1200b by mesh and realized I need batman to expand the vlans that I already created

the syslog is under the status menu. Just look for errors about packets being sent to itself. If there are no errors then yuo don't need to worry.

1 Like

@anon27495695 you are correct...batmanadv is a L2 protocol that be used to extend a VLAN network over wireless communications. It's just one of its functions among others. The DSA bridge is there to manage the VLAN filtering.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.